zhupei 3 years ago
parent
commit
11038c3bb3

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -3039,9 +3039,9 @@ namespace CallCenterApi.Interface.Controllers.weixin
3039 3039
                             {
3040 3040
                                 flag = 3;//需要判断处理内线还是外线
3041 3041
                             }
3042
-                            else if (state > 0)
3042
+                            else if (state > 0 && state<=2)
3043 3043
                             {
3044
-                                flag = itemnext.Where(t => t.F_WoState == state || t.F_WoState == 17 || t.F_WoState == 4 || t.F_WoState == 3).FirstOrDefault().F_Type;
3044
+                                flag = itemnext.Where(t => t.F_WoState == state || t.F_WoState == 17 || t.F_WoState == 4 || t.F_WoState == 3).FirstOrDefault()?.F_Type??0;
3045 3045
                             }
3046 3046
                         }
3047 3047
                         else if (itemnext.Count > 0)
@@ -3093,9 +3093,9 @@ namespace CallCenterApi.Interface.Controllers.weixin
3093 3093
                                 {
3094 3094
                                     flag = 3;//需要判断处理内线还是外线
3095 3095
                                 }
3096
-                                else if (state > 0)
3096
+                                else if (state > 0 && state<=2)
3097 3097
                                 {
3098
-                                    flag = itemnext.Where(t => t.F_WoState == state || t.F_WoState == 17 || t.F_WoState == 4 || t.F_WoState == 3).FirstOrDefault().F_Type;
3098
+                                    flag = itemnext.Where(t => t.F_WoState == state || t.F_WoState == 17 || t.F_WoState == 4 || t.F_WoState == 3).FirstOrDefault()?.F_Type??0;
3099 3099
                                 }
3100 3100
                             }
3101 3101
                             else if(itemnext.Count > 0)

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderNewController.cs

@@ -2566,9 +2566,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
2566 2566
                             {
2567 2567
                                 flag = 3;//需要判断处理内线还是外线
2568 2568
                             } 
2569
-                            else if (state > 0)
2569
+                            else if (state > 0 & state<=2)
2570 2570
                             {
2571
-                                flag = itemnext.Where(t => t.F_WoState == state || t.F_WoState == 17 || t.F_WoState==4 || t.F_WoState == 3).FirstOrDefault().F_Type;
2571
+                                flag = itemnext.Where(t => t.F_WoState == state || t.F_WoState == 17 || t.F_WoState==4 || t.F_WoState == 3).FirstOrDefault()?.F_Type??0;
2572 2572
                             }
2573 2573
                         }
2574 2574
                         else if (itemnext.Count > 0)
@@ -2620,9 +2620,9 @@ namespace CallCenterApi.Interface.Controllers.workorder
2620 2620
                                 {
2621 2621
                                     flag = 3;//需要判断处理内线还是外线
2622 2622
                                 }
2623
-                                else if (state > 0)
2623
+                                else if (state > 0 && state<=2)
2624 2624
                                 {
2625
-                                    flag = itemnext.Where(t => t.F_WoState == state || t.F_WoState == 17 || t.F_WoState == 4 || t.F_WoState == 3).FirstOrDefault().F_Type;
2625
+                                    flag = itemnext.Where(t => t.F_WoState == state || t.F_WoState == 17 || t.F_WoState == 4 || t.F_WoState == 3).FirstOrDefault()?.F_Type??0;
2626 2626
                                 }
2627 2627
                             }
2628 2628
                             else if (itemnext.Count > 0)

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Web.config

@@ -17,8 +17,8 @@
17 17
     <add key="smssign" value=""/>
18 18
   </appSettings>
19 19
   <connectionStrings>
20
-    <add name="ConnectionString" connectionString="Data Source=192.168.8.3;User ID=sa;pwd=800100;Initial Catalog=xinlianxin;"/>
21
-  <!--<add name="ConnectionString" connectionString="Data Source=.;User ID=sa;pwd=sa123456;Initial Catalog=CallCenter_XinXiangXLX0712;" />-->
20
+    <!--<add name="ConnectionString" connectionString="Data Source=192.168.8.3;User ID=sa;pwd=800100;Initial Catalog=xinlianxin;"/>-->
21
+  <add name="ConnectionString" connectionString="Data Source=.;User ID=sa;pwd=sa123456;Initial Catalog=CallCenter_XinXiangXLX0722;" />
22 22
   </connectionStrings>
23 23
   <system.web>
24 24
     <compilation debug="true" targetFramework="4.5"/>