From c82bde97920aefc0a4f6eed6eadce9faa0882b2f Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 13 三月 2023 23:41:16 +0800 Subject: [PATCH] fix 修复 关闭租户后 插入数据报无租户ID问题 使用默认值兼容 --- ruoyi-common/ruoyi-common-satoken/src/main/java/com/ruoyi/common/satoken/utils/LoginHelper.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ruoyi-common/ruoyi-common-satoken/src/main/java/com/ruoyi/common/satoken/utils/LoginHelper.java b/ruoyi-common/ruoyi-common-satoken/src/main/java/com/ruoyi/common/satoken/utils/LoginHelper.java index 93a614d..cecde85 100644 --- a/ruoyi-common/ruoyi-common-satoken/src/main/java/com/ruoyi/common/satoken/utils/LoginHelper.java +++ b/ruoyi-common/ruoyi-common-satoken/src/main/java/com/ruoyi/common/satoken/utils/LoginHelper.java @@ -108,7 +108,7 @@ public static String getTenantId() { String tenantId; try { - tenantId =(String) SaHolder.getStorage().get(TENANT_KEY); + tenantId = (String) SaHolder.getStorage().get(TENANT_KEY); if (ObjectUtil.isNull(tenantId)) { tenantId = (String) StpUtil.getExtra(TENANT_KEY); SaHolder.getStorage().set(TENANT_KEY, tenantId); -- Gitblit v1.9.3