Browse Source

stringutils校验TOKEN

master
453530270@qq.com 3 years ago
parent
commit
d40c800140
  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 (token == null) { if (StringUtils.isEmpty(token)) {
throw new ChException("token为空,token为必须参数"); throw new ChException("token为空,token为必须参数");
}else{ }else{
log.info("token正常"); log.info("token正常");

Loading…
Cancel
Save