Browse Source

增加null判断

master
453530270@qq.com 3 years ago
parent
commit
6b0a107636
  1. 2
      src/main/java/cn/chjyj/szwh/Interceptor/ChInterceptor.java

2
src/main/java/cn/chjyj/szwh/Interceptor/ChInterceptor.java

@ -45,7 +45,7 @@ public class ChInterceptor implements HandlerInterceptor {
//默认全部检查 //默认全部检查
else { else {
// 执行认证 // 执行认证
if (StringUtils.isEmpty(token)) { if (token==null || StringUtils.isBlank(token)) {
throw new ChException("token为空,token为必须参数"); throw new ChException("token为空,token为必须参数");
}else{ }else{
log.info("token正常"); log.info("token正常");

Loading…
Cancel
Save