|
@@ -81,6 +81,7 @@ public class ErrorInfoBuilder implements HandlerExceptionResolver, Ordered {
|
|
} else if (error instanceof UnknownAccountException || error instanceof IncorrectCredentialsException) {
|
|
} else if (error instanceof UnknownAccountException || error instanceof IncorrectCredentialsException) {
|
|
msg = ResultCode.AUTH_FAILD.getMsg();
|
|
msg = ResultCode.AUTH_FAILD.getMsg();
|
|
} else if (error instanceof AuthenticationException) {
|
|
} else if (error instanceof AuthenticationException) {
|
|
|
|
+ code = HttpStatus.UNAUTHORIZED.value();
|
|
msg = "登录认证失败";
|
|
msg = "登录认证失败";
|
|
} else if (error instanceof APIException e) {
|
|
} else if (error instanceof APIException e) {
|
|
msg = e.getMsg();
|
|
msg = e.getMsg();
|