Bladeren bron

修改手机号格式bug

mengjie 8 jaren geleden
bovenliggende
commit
363f195ec8

+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/SeatGroupController.cs

@@ -149,12 +149,12 @@ namespace CallCenterApi.Interface.Controllers
149 149
                     sModel.F_IVRKey = input.IVRKey;
150 150
                 if (input.Des != null)
151 151
                     sModel.F_Des = input.Des.Trim();
152
-                if (!Utils.IsNumeric(input.WHWDKey.ToString()))
152
+                if (!Validate.IsNumber(input.WHWDKey.ToString()))
153 153
                 {
154 154
                     res = Error("外呼外地前缀必须为数字");
155 155
                     return res;
156 156
                 }
157
-                if (!Utils.IsNumeric(input.WHBDKey.ToString()))
157
+                if (!Validate.IsNumber(input.WHBDKey.ToString()))
158 158
                 {
159 159
                     res = Error("外呼本地前缀必须为数字");
160 160
                     return res;

+ 2 - 2
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/DutyPhoneController.cs

@@ -122,7 +122,7 @@ namespace CallCenterApi.Interface.Controllers.tel
122 122
                         if (dModel != null)
123 123
                         {
124 124
                        
125
-                        if (!Utils.IsNumeric(telphone.Trim()))
125
+                        if (!Validate.IsNumber(telphone.Trim()))
126 126
                         {
127 127
                             res = Error("电话号码必须为数字!");
128 128
                             return res;
@@ -144,7 +144,7 @@ namespace CallCenterApi.Interface.Controllers.tel
144 144
                     else
145 145
                     {
146 146
                         Model.T_Call_ZBDH dModel = new Model.T_Call_ZBDH();
147
-                    if (!Utils.IsNumeric(telphone.Trim()))
147
+                    if (!Validate.IsNumber(telphone.Trim()))
148 148
                     {
149 149
                         res = Error("电话号码必须为数字!");
150 150
                         return res;