瀏覽代碼

用户认证历史纪录

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