DuGuYang 10 месяцев назад
Родитель
Сommit
5c906efafd
3 измененных файлов с 9 добавлено и 6 удалено
  1. 1 1
      Entity/HaoDa/AddNewMerchant.cs
  2. 3 3
      Entity/HaoDa/HaodaParam.cs
  3. 5 2
      Util/HaoDa/HaoDaHelper.cs

+ 1 - 1
Entity/HaoDa/AddNewMerchant.cs

@@ -39,7 +39,7 @@ namespace MySystem
         public string resserveMobile { get; set; }//银行预留手机号 channelkind为000001时必填
         public string userName { get; set; }//商户法人姓名
         public string periodValidity { get; set; }//法人身份证有效期 格式:20150101-20200101,若结束日期为长期填20150101-长期
-        // public string oprInvitedCode { get; set; }
+        public string oprInvitedCode { get; set; }
         public List<ImageItem> images { get; set; }//图片
 
     }

+ 3 - 3
Entity/HaoDa/HaodaParam.cs

@@ -8,9 +8,9 @@ namespace MySystem
     public static class HaodaParam
     {
         public static string BoxRequestUrl = "https://openapi.iboxpay.com";
-        public static string BoxAppId = "AP7175619323825451008";
-        public static string BoxAppSecret = "hUfR53gdjyfiZTBR5bILanMqRD1dXD7y";
+        public static string BoxAppId = "AP8322645764893728768";
+        public static string BoxAppSecret = "je1TElprp3jzWETsG3FcWqtmpreEHqZS";
         public static string BoxPublicKey = "";
-        public static string BrhCode = "030145";
+        public static string BrhCode = "";
     }
 }

+ 5 - 2
Util/HaoDa/HaoDaHelper.cs

@@ -53,10 +53,13 @@ namespace MySystem
         public string AddNewMerchant(AddNewMerchant request, int BrandId = 0)
         {
             var BoxRequestUrl = HaodaUnionParam.BoxRequestUrl;
-            if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
+            if (BrandId == 1)
+            {
+                BoxRequestUrl = HaodaParam.BoxRequestUrl;
+                request.oprInvitedCode = "T1715836";
+            }
 
             // request.brh = BrhCode;
-            // request.oprInvitedCode = "T1715836";
             LogHelper.Instance.WriteLog(DateTime.Now.ToString(), "好哒新创建商户");
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);