浏览代码

配置参数

vincent 3 年之前
父节点
当前提交
c8ee76ff8e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      server/src/main/java/edp/davinci/core/inteceptor/AuthenticationInterceptor.java

+ 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;