From edfa49f201d3fc8fc6b51b700e91f80246660855 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 13 二月 2024 20:29:14 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/security/JwtAuthenticationFilter.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/security/JwtAuthenticationFilter.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/security/JwtAuthenticationFilter.java
index efba12c..91b8954 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/security/JwtAuthenticationFilter.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/common/security/JwtAuthenticationFilter.java
@@ -65,7 +65,7 @@
                 User user;
                 // 鐧藉悕鍗�
                 if (WHITE_LIST.contains(access_token)) {
-                    user = userService.getByUsername("super", null);
+                    user = userService.getByUsername("root", 1L);
                     if (user == null) {
                         throw new UsernameNotFoundException("Username not found");
                     }
@@ -97,10 +97,12 @@
                     }
                 }
             } catch (ExpiredJwtException e) {
+                e.printStackTrace();
                 HttpUtils.responseError(response, Constants.TOKEN_EXPIRED_CODE, Constants.TOKEN_EXPIRED_MSG,
                         e.getMessage());
                 return;
             } catch (Exception e) {
+                e.printStackTrace();
                 HttpUtils.responseError(response, Constants.BAD_CREDENTIALS_CODE, Constants.BAD_CREDENTIALS_MSG,
                         e.toString());
                 return;

--
Gitblit v1.9.1