浏览代码

Merge branch 'crm/crm_16.4' of http://8.136.199.33:3000/hongze/hz_crm_api into debug

zhangchuanxing 3 月之前
父节点
当前提交
e26d102e53
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      controllers/company_user.go

+ 7 - 2
controllers/company_user.go

@@ -6577,10 +6577,15 @@ func (this *CompanyController) EditUserOutboundMobile() {
 		br.Ret = 408
 		return
 	}
-	if !utils.ValidateMobileFormatat(req.OutboundMobile) {
-		br.Msg = "手机号格式有误"
+
+	if req.OutboundMobile == "" {
+		br.Msg = "手机号不能为空"
 		return
 	}
+	//if !utils.ValidateMobileFormatat(req.OutboundMobile) {
+	//	br.Msg = "手机号格式有误"
+	//	return
+	//}
 	err = models.UpdateUserOutboundMobile(req.OutboundMobile, req.OutboundCountryCode, req.UserId)
 	br.Ret = 200
 	br.Success = true