ソースを参照

:bookmark: Releasing / Version tags. 2.2.0

冷冷 6 年 前
コミット
7f4766d6de

+ 0 - 5
pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/tenant/TenantContextHolderFilter.java

@@ -19,7 +19,6 @@ package com.pig4cloud.pigx.common.data.tenant;
 
 import cn.hutool.core.util.StrUtil;
 import com.pig4cloud.pigx.common.core.constant.CommonConstants;
-import com.pig4cloud.pigx.common.security.util.SecurityUtils;
 import lombok.SneakyThrows;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.core.Ordered;
@@ -51,10 +50,6 @@ public class TenantContextHolderFilter extends GenericFilterBean {
 		String tenantId = request.getHeader(CommonConstants.TENANT_ID);
 		log.debug("获取header中的租户ID为:{}", tenantId);
 
-		if (SecurityUtils.getUser() != null) {
-			tenantId = String.valueOf(SecurityUtils.getUser().getTenantId());
-		}
-
 		if (StrUtil.isNotBlank(tenantId)) {
 			TenantContextHolder.setTenantId(Integer.parseInt(tenantId));
 		} else {