diff --git a/src/main/java/cn/chjyj/szwh/Interceptor/ChInterceptor.java b/src/main/java/cn/chjyj/szwh/Interceptor/ChInterceptor.java index bf6dff0..ba76ea1 100644 --- a/src/main/java/cn/chjyj/szwh/Interceptor/ChInterceptor.java +++ b/src/main/java/cn/chjyj/szwh/Interceptor/ChInterceptor.java @@ -45,7 +45,7 @@ public class ChInterceptor implements HandlerInterceptor { //默认全部检查 else { // 执行认证 - if (token == null) { + if (StringUtils.isEmpty(token)) { throw new ChException("token为空,token为必须参数"); }else{ log.info("token正常");