Browse Source

token --- redisCache.getCacheObject("userId");

sunhh 2 years ago
parent
commit
2656a49daa

+ 4 - 4
base-framework/src/main/java/com/ozs/framework/web/service/TokenService.java

@@ -75,10 +75,10 @@ public class TokenService
                 if(StringUtils.isEmpty(uuid)){
                     uuid = (String) claims.get(Constants.LOGIN_USER_KEY_APP);
                 }
-                String userId = redisCache.getCacheObject("userId");
-                if (!token.equals(userId)){
-                    return null;
-                }
+//                String userId = redisCache.getCacheObject("userId");
+//                if (!token.equals(userId)){
+//                    return null;
+//                }
                 String userKey = getTokenKey(uuid);
                 LoginUser user = redisCache.getCacheObject(userKey);
                 return user;