瀏覽代碼

fix:邮箱

zqbao 10 月之前
父節點
當前提交
258d2b5822
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 		}