cid新注册用户前端传的是null字符串
This commit is contained in:
@@ -64,7 +64,7 @@ public class TenantContextHolderFilter extends GenericFilterBean {
|
|||||||
|
|
||||||
log.info("获取header中的租户ID为:{}", headerTenantId);
|
log.info("获取header中的租户ID为:{}", headerTenantId);
|
||||||
|
|
||||||
if (StrUtil.isNotBlank(headerTenantId) && !StrUtil.equals(UNDEFINED_STR, headerTenantId)) {
|
if (StrUtil.isNotBlank(headerTenantId) && !StrUtil.equals(UNDEFINED_STR, headerTenantId) && !StrUtil.equals("null", headerTenantId)) {
|
||||||
TenantContextHolder.setTenantId(Long.parseLong(headerTenantId));
|
TenantContextHolder.setTenantId(Long.parseLong(headerTenantId));
|
||||||
}
|
}
|
||||||
else if (StrUtil.isNotBlank(paramTenantId) && !StrUtil.equals(UNDEFINED_STR, paramTenantId)) {
|
else if (StrUtil.isNotBlank(paramTenantId) && !StrUtil.equals(UNDEFINED_STR, paramTenantId)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user