From d40c800140803dcbab7b077062ee15d0f46e1497 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Tue, 27 Jun 2023 19:04:06 +0800 Subject: [PATCH] =?UTF-8?q?stringutils=E6=A0=A1=E9=AA=8CTOKEN?= 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 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正常");