zhengbingbing 7 lat temu
rodzic
commit
dc6ebe6682

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Configs/system.config

@@ -24,5 +24,5 @@
24 24
   <!-- 设置微信appsecret -->
25 25
   <add key="WechatAppsecret" value="2782e4dd8abd5b7a5c7d36703ccae96c" />
26 26
   <!-- ================== 4:公司名称中需截取掉的字符串 ================== -->
27
-  <add key="keystring" value="有限公司,有限,科技,网络,信息,河南,河南省,洛阳,洛阳市,郑州,郑州市,南阳,南阳市,新乡,新乡市"/>
27
+  <add key="keystring" value="有限公司,公司,科技,网络,信息,河南,河南省,洛阳,洛阳市,郑州,郑州市,南阳,南阳市,新乡,新乡市"/>
28 28
 </appSettings>

+ 3 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerNewController.cs

@@ -244,7 +244,7 @@ namespace CallCenterApi.Interface.Controllers.customer
244 244
             if (n > 0)
245 245
             {
246 246
                 #region 添加联系人
247
-                if(input.ContactList.Count>0)
247
+                if (input.ContactList != null && input.ContactList.Count > 0)
248 248
                 {
249 249
                     var conmodel = new Model.T_Cus_ContactPersonNew();
250 250
                     conmodel.F_CustomerId = n;
@@ -253,6 +253,8 @@ namespace CallCenterApi.Interface.Controllers.customer
253 253
                     conmodel.F_DeleteFlag = 0;
254 254
                     foreach (var item in input.ContactList)
255 255
                     {
256
+                        conmodel.F_CustomerId = item.F_CustomerId;
257
+                        conmodel.F_IsMain = item.F_IsMain;
256 258
                         conmodel.F_Name = item.F_Name;
257 259
                         conmodel.F_Telephone = item.F_Telephone;
258 260
                         conmodel.F_Duties = item.F_Duties;