|
|
@@ -143,17 +143,18 @@ namespace CallCenterApi.Interface.Controllers.customer
|
|
143
|
143
|
string telphone = RequestString.GetFormString("telphone");
|
|
144
|
144
|
string chargetelephone = RequestString.GetFormString("chargetelephone");
|
|
145
|
145
|
#region 判断输入数据类型
|
|
146
|
|
- if (mobile!=""&&!Utils.IsNumeric(mobile))
|
|
|
146
|
+
|
|
|
147
|
+ if (mobile != "" && !CallCenter.Utility.Validate.IsNumber(mobile))
|
|
147
|
148
|
{
|
|
148
|
149
|
res = Error("电话必须为数字");
|
|
149
|
150
|
return res;
|
|
150
|
151
|
}
|
|
151
|
|
- if (telphone != "" && !Utils.IsNumeric(telphone))
|
|
|
152
|
+ if (telphone != "" && !Validate.IsNumber(telphone))
|
|
152
|
153
|
{
|
|
153
|
154
|
res = Error("电话必须为数字");
|
|
154
|
155
|
return res;
|
|
155
|
156
|
}
|
|
156
|
|
- if (chargetelephone != "" && !Utils.IsNumeric(chargetelephone))
|
|
|
157
|
+ if (chargetelephone != "" && !Validate.IsNumber(chargetelephone))
|
|
157
|
158
|
{
|
|
158
|
159
|
res = Error("电话必须为数字");
|
|
159
|
160
|
return res;
|