Browse Source

fix:邮箱

zqbao 10 tháng trước cách đây
mục cha
commit
258d2b5822
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
 		}