Browse Source

redis还原

zhangheng 3 years ago
parent
commit
eeae81f3af

+ 3 - 1
server/src/main/java/edp/davinci/core/inteceptor/AuthenticationInterceptor.java

@@ -138,7 +138,9 @@ public class AuthenticationInterceptor implements HandlerInterceptor
                 }
             }
             // 统一认证
+            log.info("acessToken>>>>"+token);
             Object acessToken = redisUtils.get(token);
+            log.info("acessToken>>>>"+acessToken);
             if (acessToken == null)
             {
                 log.debug("token is not found in redis");
@@ -146,7 +148,7 @@ public class AuthenticationInterceptor implements HandlerInterceptor
                 response.getWriter().print(ErrorMsg.ERR_LOAD_DATA_TOKEN);
                 return false;
             }
-            log.info("acessToken"+acessToken);
+
             JSONObject userinfoObject = (JSONObject) JSONObject.toJSON(acessToken);
             User user = userService.getByUsername(userinfoObject.getString("username"));
             if (null == user)