Browse Source

fix:邮箱

zqbao 10 months ago
parent
commit
258d2b5822
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/sys_user.go

+ 1 - 1
controllers/sys_user.go

@@ -68,7 +68,7 @@ func (this *SysUserController) Add() {
 		}
 	}
 	if req.Email != "" {
-		if !utils.ValidateEmailFormatat(req.Phone) {
+		if !utils.ValidateEmailFormatat(req.Email) {
 			br.Msg = "邮箱格式有误, 请检查"
 			return
 		}