mirror of
https://github.com/dataease/dataease.git
synced 2026-06-15 02:21:43 +08:00
fix(X-Pack): 使用 Redis 作为缓存中间件开启禁止多端登录导致第三方认证报错 (#14054)
This commit is contained in:
@@ -95,7 +95,9 @@ public class TokenCacheUtils {
|
||||
if (useRedis()) {
|
||||
ValueOperations valueOperations = cacheHandler();
|
||||
Object obj = valueOperations.get(ONLINE_TOKEN_POOL_KEY + userId);
|
||||
if (ObjectUtils.isNotEmpty(obj)) return (OnlineUserModel) obj;
|
||||
if (ObjectUtils.isNotEmpty(obj)) {
|
||||
return gson.fromJson(gson.toJson(obj), OnlineUserModel.class);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Object o = CacheUtils.get(ONLINE_TOKEN_POOL_KEY, userId);
|
||||
|
||||
Reference in New Issue
Block a user