2 次代碼提交 db69e9756d ... e26d102e53

作者 SHA1 備註 提交日期
  zhangchuanxing e26d102e53 Merge branch 'crm/crm_16.4' of http://8.136.199.33:3000/hongze/hz_crm_api into debug 15 小時之前
  zhangchuanxing e48606f8f5 no message 15 小時之前
共有 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