|
@@ -1099,6 +1099,14 @@ func (this *UserController) AddOutboundMobile() {
|
|
|
br.ErrMsg = "参数解析失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
+ if !utils.ValidateFixedTelephoneFormatat(req.OutboundMobile) && !utils.ValidateMobileFormatat(req.OutboundMobile) {
|
|
|
+ br.Msg = "号码格式有误,请重新填写!"
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if req.OutboundMobile == "" {
|
|
|
+ br.Msg = "请填写区号!"
|
|
|
+ return
|
|
|
+ }
|
|
|
item := new(models.OutboundMobileItem)
|
|
|
item.OutboundMobile = req.OutboundMobile
|
|
|
item.OutboundCountryCode = req.OutboundCountryCode
|