瀏覽代碼

修改手机号格式bug

mengjie 8 年之前
父節點
當前提交
cd2a5ee24a

+ 4 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

@@ -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;

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -519,7 +519,7 @@ namespace CallCenterApi.Interface.Controllers.tel
519 519
                 #endregion
520 520
 
521 521
                 #region 判断输入数据类型
522
-                if (!Utils.IsNumeric(tsdh))
522
+                if (!Validate.IsNumber(tsdh))
523 523
                 {
524 524
                     res = Error("电话必须为数字");
525 525
                     return res;

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -524,7 +524,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
524 524
                         string tskh = RequestString.GetFormString("tskh");
525 525
                         string tsdh = RequestString.GetFormString("tsdh");
526 526
                         #region 判断输入数据类型
527
-                        if (!Utils.IsNumeric(tsdh))
527
+                        if (!Validate.IsNumber(tsdh))
528 528
                         {
529 529
                             res = Error("电话必须为数字");
530 530
                             return res;