vincent 3 anni fa
parent
commit
c8ee76ff8e

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

@@ -123,7 +123,8 @@ public class AuthenticationInterceptor implements HandlerInterceptor
             }
             // 统一认证
             JSONObject acessToken = (JSONObject) redisUtils.get(token);
-            if(StringUtils.isEmpty(acessToken.toString())){
+            if(acessToken == null){
+                log.debug("token is not found in redis");
                 response.setStatus(HttpCodeEnum.UNAUTHORIZED.getCode());
                 response.getWriter().print(ErrorMsg.ERR_LOAD_DATA_TOKEN);
                 return false;