对所有存在userId的请求进行鉴权, userId为nul或无时放过

master
yangjie 4 years ago
parent 379426bad0
commit b0f23e39b2
  1. 2
      src/main/java/com/yipin/liuwanr/filter/AuthInterceptor.java

@ -45,7 +45,7 @@ public class AuthInterceptor implements HandlerInterceptor {
if (!StringUtils.isEmpty(userId)){ if (!StringUtils.isEmpty(userId)){
return userId.equals(loginStatus); return userId.equals(loginStatus);
}else { }else {
return false; return true;
} }
} }
} }

Loading…
Cancel
Save