cid新注册用户前端传的是null字符串

This commit is contained in:
2025-12-24 11:40:29 +08:00
parent d4ed987f75
commit ecb53f27bc

View File

@@ -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)) {