Browse Source

支付宝提交开户意愿,流动商户地址填无

lcl 1 year ago
parent
commit
c2e7edc177
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Util/HaoDa/AlipayFunctionForHD.cs

+ 6 - 1
Util/HaoDa/AlipayFunctionForHD.cs

@@ -33,11 +33,16 @@ namespace MySystem
             AlipayMerchantIndirectAuthorderCreateRequest request = new AlipayMerchantIndirectAuthorderCreateRequest();
             string out_biz_no = DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
             string identity_type = info.SubjectType;
+            string store_address = info.BizStoreAddress;
             string merchant_type = "STORE";
             if(!string.IsNullOrEmpty(info.MerchantType))
             {
                 merchant_type = info.MerchantType;
             }
+            if(merchant_type == "STALL")
+            {
+                store_address = "无";
+            }
             if (identity_type == "SUBJECT_TYPE_ENTERPRISE") identity_type = "ENTERPRISE";
             if (identity_type == "SUBJECT_TYPE_INDIVIDUAL") identity_type = "IND_BIZ";
             if (identity_type == "SUBJECT_TYPE_SMALL")
@@ -115,7 +120,7 @@ namespace MySystem
                 "      \"city\":\"" + city + "\"," +
                 "      \"district_code\":\"" + district_code + "\"," +
                 "      \"district\":\"" + district + "\"," +
-                "      \"store_address\":\"" + info.BizStoreAddress + "\"," +
+                "      \"store_address\":\"" + store_address + "\"," +
                 "      \"store_door_img\":\"" + UploadPic(info.StoreEntrancePic.Split(',')[0]) + "\"," +
                 "      \"store_inner_img\":\"" + UploadPic(info.IndoorPic.Split(',')[0]) + "\"" +
                 "    }";