Parcourir la Source

修改手机号格式bug

mengjie il y a 8 ans
Parent
commit
363f195ec8

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

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

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

122
                         if (dModel != null)
122
                         if (dModel != null)
123
                         {
123
                         {
124
                        
124
                        
125
-                        if (!Utils.IsNumeric(telphone.Trim()))
125
+                        if (!Validate.IsNumber(telphone.Trim()))
126
                         {
126
                         {
127
                             res = Error("电话号码必须为数字!");
127
                             res = Error("电话号码必须为数字!");
128
                             return res;
128
                             return res;
144
                     else
144
                     else
145
                     {
145
                     {
146
                         Model.T_Call_ZBDH dModel = new Model.T_Call_ZBDH();
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
                         res = Error("电话号码必须为数字!");
149
                         res = Error("电话号码必须为数字!");
150
                         return res;
150
                         return res;