From 44eaf2e99d5ecf958576bd48a428ab2ccf8b5386 Mon Sep 17 00:00:00 2001 From: fengyw Date: Tue, 18 Jul 2023 16:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roncoo/education/app/gateway/filter/EduGlobalFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roncoo-education-app/roncoo-education-app-gateway/src/main/java/com/roncoo/education/app/gateway/filter/EduGlobalFilter.java b/roncoo-education-app/roncoo-education-app-gateway/src/main/java/com/roncoo/education/app/gateway/filter/EduGlobalFilter.java index 1f8b73c7..36291553 100644 --- a/roncoo-education-app/roncoo-education-app-gateway/src/main/java/com/roncoo/education/app/gateway/filter/EduGlobalFilter.java +++ b/roncoo-education-app/roncoo-education-app-gateway/src/main/java/com/roncoo/education/app/gateway/filter/EduGlobalFilter.java @@ -123,7 +123,7 @@ public class EduGlobalFilter implements GlobalFilter, Ordered { private Long getUserId(ServerHttpRequest request) { // 头部 String token = request.getHeaders().getFirst(Constants.TOKEN); - if (StringUtils.isEmpty(token)) { + if (!StringUtils.hasText(token)) { throw new BaseException("token不存在,请重新登录"); } -- GitLab