Parcourir la source

微信提交进件门口照片问题修复

lcl il y a 1 an
Parent
commit
7d9df5ffc1
1 fichiers modifiés avec 10 ajouts et 3 suppressions
  1. 10 3
      AppStart/WeChatFunction.cs

+ 10 - 3
AppStart/WeChatFunction.cs

@@ -94,7 +94,14 @@ namespace MySystem
             id_card_info.Add("card_period_end", CheckForever(info.CardPeriodEnd)); //身份证有效期结束时间
             identity_info.Add("id_card_info", id_card_info); //身份证信息
             // identity_info.Add("owner", info.Owner == 1 ? true : false); //经营者/法人是否为受益人
-            identity_info.Add("owner", true);
+            if(info.SubjectType == "SUBJECT_TYPE_ENTERPRISE")
+            {
+                identity_info.Add("owner", true);
+            }
+            // else
+            // {
+            //     identity_info.Add("owner", null);
+            // }
             subject_info.Add("identity_info", identity_info); //经营者/法人身份证件
 
             // if (info.Owner == 0)
@@ -128,7 +135,7 @@ namespace MySystem
             biz_store_info.Add("biz_address_code", BizAddress.Code); //门店省市编码
             biz_store_info.Add("biz_store_address", info.BizStoreAddress); //门店地址
             List<string> store_entrance_pic = new List<string>();
-            if(string.IsNullOrEmpty(info.StoreEntrancePic))
+            if(!string.IsNullOrEmpty(info.StoreEntrancePic))
             {
                 string[] piclist = info.StoreEntrancePic.Split(',');
                 foreach(string sub in piclist)
@@ -138,7 +145,7 @@ namespace MySystem
             }
             biz_store_info.Add("store_entrance_pic", store_entrance_pic); //门店门头照片
             List<string> indoor_pic = new List<string>();
-            if(string.IsNullOrEmpty(info.IndoorPic))
+            if(!string.IsNullOrEmpty(info.IndoorPic))
             {
                 string[] piclist = info.IndoorPic.Split(',');
                 foreach(string sub in piclist)