|
@@ -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
|