ziwen 1 year ago
parent
commit
051877e718
1 changed files with 3 additions and 0 deletions
  1. 3 0
      controller/auth.go

+ 3 - 0
controller/auth.go

@@ -149,6 +149,9 @@ func (a *AuthController) Register(c *gin.Context) {
 			}
 			resp.Ok("注册成功", c)
 			userId = int(emailItem.Id)
+		} else if emailItem.Status == 1 && emailItem.Password != "" {
+			resp.Registered("邮箱已注册.", c)
+			return
 		} else if emailItem.Status == 2 {
 			resp.Registered("邮箱已注册.", c)
 			return