Commit 1a2cd41d by fanjiaxin

联调问题处理

parent 4a81f617
Pipeline #71572 passed with stages
in 58 seconds
...@@ -39,7 +39,7 @@ public class AuthInterceptor implements HandlerInterceptor { ...@@ -39,7 +39,7 @@ public class AuthInterceptor implements HandlerInterceptor {
LoginRequired clientMethodAnnotation = method.getAnnotation(LoginRequired.class); LoginRequired clientMethodAnnotation = method.getAnnotation(LoginRequired.class);
String token = request.getHeader(CoreConstant.AUTH_HEADER_TOKEN_KEY); String token = request.getHeader(CoreConstant.AUTH_HEADER_TOKEN_KEY);
if (clientMethodAnnotation != null) { if (clientMethodAnnotation != null) {
if (StringUtils.isEmpty(token)) { if (StringUtils.isBlank(token)) {
throw new NoAuthException("用户认证失败,TOKEN为空"); throw new NoAuthException("用户认证失败,TOKEN为空");
} }
LoginUserInfo loginUserInfo = jwtHelper.getLoginUserInfo(token); LoginUserInfo loginUserInfo = jwtHelper.getLoginUserInfo(token);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment