From f2956c322edfeb241acdd1e415080fb40a021ced Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期日, 19 十一月 2023 21:37:03 +0800 Subject: [PATCH] update 优化 支持多租户绑定相同的三方登录 --- ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java b/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java index 4b31343..14dad1a 100644 --- a/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java +++ b/ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java @@ -33,7 +33,7 @@ if (StringUtils.isBlank(tenantId)) { log.error("鏃犳硶鑾峰彇鏈夋晥鐨勭鎴穒d -> Null"); } - if (StringUtils.startsWith(name, tenantId)) { + if (StringUtils.startsWith(name, tenantId + "")) { // 濡傛灉瀛樺湪鍒欑洿鎺ヨ繑鍥� return super.map(name); } @@ -56,7 +56,7 @@ if (StringUtils.isBlank(tenantId)) { log.error("鏃犳硶鑾峰彇鏈夋晥鐨勭鎴穒d -> Null"); } - if (StringUtils.startsWith(unmap, tenantId)) { + if (StringUtils.startsWith(unmap, tenantId + "")) { // 濡傛灉瀛樺湪鍒欏垹闄� return unmap.substring((tenantId + ":").length()); } -- Gitblit v1.9.3