Browse Source

Merge branch 'feature/import_space_0202'

hsun 1 year ago
parent
commit
f6bda7a908
1 changed files with 7 additions and 0 deletions
  1. 7 0
      controllers/company_user.go

+ 7 - 0
controllers/company_user.go

@@ -4065,6 +4065,13 @@ func (this *CompanyUserController) Import() {
 					br.Msg = "导入数据中存在【国际区号】为空的联系人,请检查"
 					return
 				}
+				// 大陆区号校验手机号
+				if mobileOne != "" && (countryCode == "86" || countryCode == "086" || countryCode == "+86" || countryCode == "+086") {
+					if !utils.ValidateMobileFormatat(mobileOne) {
+						br.Msg = "导入数据中存在【大陆手机号】格式有误的联系人,请检查"
+						return
+					}
+				}
 
 				//如果手机号或者邮箱都没有填写的情况下
 				if mobileOne == "" && email == "" {