mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-12 13:39:01 +08:00
Merge branch 'master' of 202206271646/pigx into dev
This commit is contained in:
commit
60782d4095
1 file changed
+2
-2
+2
-2
@@ -52,10 +52,10 @@ public class TenantContextHolderFilter extends GenericFilterBean {
|
||||
|
||||
log.debug("获取header中的租户ID为:{}", headerTenantId);
|
||||
|
||||
if (StrUtil.isNotBlank(headerTenantId)) {
|
||||
if (StrUtil.isNotBlank(headerTenantId) && !headerTenantId.equals("undefined")) {
|
||||
TenantContextHolder.setTenantId(Long.parseLong(headerTenantId));
|
||||
}
|
||||
else if (StrUtil.isNotBlank(paramTenantId)) {
|
||||
else if (StrUtil.isNotBlank(paramTenantId) && !paramTenantId.equals("undefined") {
|
||||
TenantContextHolder.setTenantId(Long.parseLong(paramTenantId));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user