소스 검색

用户认证历史纪录

Zhaops 6 년 전
부모
커밋
03b90e28b8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      user-service/src/main/java/com/diagbot/facade/UserAuthenticationFacade.java

+ 2 - 2
user-service/src/main/java/com/diagbot/facade/UserAuthenticationFacade.java

@@ -59,10 +59,10 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
         }
 
         if (user.getAuthStatus().equals(AuthStatusEnum.Authorized.getKey())) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
+            throw new CommonException(CommonErrorCode.IS_EXISTS,
                     "用户【" + user.getUsername() + "】已认证,不允许重复认证");
         } else if (user.getAuthStatus().equals(AuthStatusEnum.Authorizing.getKey())) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
+            throw new CommonException(CommonErrorCode.IS_EXISTS,
                     "认证申请已提交,无需重复提交");
         }