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