From 6b0a10763632ea6ab2da57aa9ee7567adcfe4b46 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Tue, 15 Aug 2023 15:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0null=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/chjyj/szwh/Interceptor/ChInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/chjyj/szwh/Interceptor/ChInterceptor.java b/src/main/java/cn/chjyj/szwh/Interceptor/ChInterceptor.java index ba76ea1..41ee3ce 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 (StringUtils.isEmpty(token)) { + if (token==null || StringUtils.isBlank(token)) { throw new ChException("token为空,token为必须参数"); }else{ log.info("token正常");