ChenSiTong 6 rokov pred
rodič
commit
7068ec9f24

+ 1 - 3
src/main/java/nju/seec/helper/aspect/auth/AuthAspect.java

@@ -69,8 +69,6 @@ public class AuthAspect {
         String token = Optional.ofNullable(httpServletRequest.getHeader("Authorization"))
                 .orElseThrow(() -> HelperException.of(ExceptionType.UNAUTHORIZED, "缺少Token"));
 
-        System.out.println(token);
-
         JWTVerifier jwtVerifier = JWT.require(Algorithm.HMAC256(jwtSecret)).build();
 
         DecodedJWT decodedJWT;
@@ -78,7 +76,7 @@ public class AuthAspect {
         try {
             decodedJWT = jwtVerifier.verify(token);
         } catch (JWTVerificationException e) {
-            e.printStackTrace();
+//            e.printStackTrace();
             throw HelperException.of(ExceptionType.UNAUTHORIZED, "无效Token");
         }