From 761586cc3c7ed0f581350c917483208949dc66b4 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 28 十月 2024 17:44:21 +0800 Subject: [PATCH] reset 回滚错误修改 --- ruoyi-common/ruoyi-common-tenant/src/main/java/org/dromara/common/tenant/handle/TenantKeyPrefixHandler.java | 6 ++++-- 1 files changed, 4 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 9475398..65f5233 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 @@ -35,7 +35,8 @@ } String tenantId = TenantHelper.getTenantId(); if (StringUtils.isBlank(tenantId)) { - log.error("鏃犳硶鑾峰彇鏈夋晥鐨勭鎴穒d -> Null"); + log.debug("鏃犳硶鑾峰彇鏈夋晥鐨勭鎴穒d -> Null"); + return super.map(name); } if (StringUtils.startsWith(name, tenantId + "")) { // 濡傛灉瀛樺湪鍒欑洿鎺ヨ繑鍥� @@ -61,7 +62,8 @@ } String tenantId = TenantHelper.getTenantId(); if (StringUtils.isBlank(tenantId)) { - log.error("鏃犳硶鑾峰彇鏈夋晥鐨勭鎴穒d -> Null"); + log.debug("鏃犳硶鑾峰彇鏈夋晥鐨勭鎴穒d -> Null"); + return super.unmap(name); } if (StringUtils.startsWith(unmap, tenantId + "")) { // 濡傛灉瀛樺湪鍒欏垹闄� -- Gitblit v1.9.3