Browse Source

docs: 删除输出

ChenSiTong 6 năm trước cách đây
mục cha
commit
7068ec9f24
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      src/main/java/nju/seec/helper/aspect/auth/AuthAspect.java

+ 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");
         }