!308 遗漏动态租户修改内容

Merge pull request !308 from Yjoioooo/5.X
feature/model
疯狂的狮子Li 2 years ago committed by Gitee
commit fbfb53b169
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -59,7 +59,7 @@ public class TenantHelper {
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 @@ public class TenantHelper {
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);
}

Loading…
Cancel
Save