Browse Source

用户认证历史纪录

Zhaops 6 years ago
parent
commit
03b90e28b8

+ 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,
                     "认证申请已提交,无需重复提交");
         }