From c3f23156eecd52f23af074a27037a5072c1c88e2 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期三, 29 三月 2023 10:14:19 +0800 Subject: [PATCH] update minio 升级至最新版 避免低版本信息泄漏问题 --- ruoyi-common/ruoyi-common-tenant/src/main/java/com/ruoyi/common/tenant/helper/TenantHelper.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-common/ruoyi-common-tenant/src/main/java/com/ruoyi/common/tenant/helper/TenantHelper.java b/ruoyi-common/ruoyi-common-tenant/src/main/java/com/ruoyi/common/tenant/helper/TenantHelper.java index 0daf5d1..7f762aa 100644 --- a/ruoyi-common/ruoyi-common-tenant/src/main/java/com/ruoyi/common/tenant/helper/TenantHelper.java +++ b/ruoyi-common/ruoyi-common-tenant/src/main/java/com/ruoyi/common/tenant/helper/TenantHelper.java @@ -59,7 +59,7 @@ TEMP_DYNAMIC_TENANT.set(tenantId); return; } - String cacheKey = DYNAMIC_TENANT_KEY + ":" + LoginHelper.getTenantId(); + String cacheKey = DYNAMIC_TENANT_KEY + ":" + LoginHelper.getUserId(); RedisUtils.setCacheObject(cacheKey, tenantId); SaHolder.getStorage().set(cacheKey, tenantId); } @@ -91,7 +91,7 @@ TEMP_DYNAMIC_TENANT.remove(); return; } - String cacheKey = DYNAMIC_TENANT_KEY + ":" + LoginHelper.getTenantId(); + String cacheKey = DYNAMIC_TENANT_KEY + ":" + LoginHelper.getUserId(); RedisUtils.deleteObject(cacheKey); SaHolder.getStorage().delete(cacheKey); } -- Gitblit v1.9.3