zhoufan 7 yıl önce
ebeveyn
işleme
881d746aa1

+ 11 - 8
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

220
                     }
220
                     }
221
                     else
221
                     else
222
                     {
222
                     {
223
-                        BLL.T_Sys_TelTitleData numbBll = new BLL.T_Sys_TelTitleData();
224
-                        List<Model.T_Sys_TelTitleData> mobileModel = numbBll.GetModelList(" F_KeyPhoneNum='" + tel.Substring(0, 4) + "'");
225
-                        if (mobileModel == null || mobileModel.Count <= 0)
226
-                        {
227
-                            mobileModel = numbBll.GetModelList(" F_KeyPhoneNum='" + tel.Substring(0, 3) + "'");
228
-                        }
229
-                        if (mobileModel.Count > 0)
223
+                        if (tel.Trim().Length > 3)
230
                         {
224
                         {
231
-                            location = mobileModel[0].F_TitleName;
225
+                            BLL.T_Sys_TelTitleData numbBll = new BLL.T_Sys_TelTitleData();
226
+                            List<Model.T_Sys_TelTitleData> mobileModel = numbBll.GetModelList(" F_KeyPhoneNum='" + tel.Substring(0, 4) + "'");
227
+                            if (mobileModel == null || mobileModel.Count <= 0)
228
+                            {
229
+                                mobileModel = numbBll.GetModelList(" F_KeyPhoneNum='" + tel.Substring(0, 3) + "'");
230
+                            }
231
+                            if (mobileModel.Count > 0)
232
+                            {
233
+                                location = mobileModel[0].F_TitleName;
234
+                            }
232
                         }
235
                         }
233
                     }
236
                     }
234
                 }
237
                 }