|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|