Kaynağa Gözat

查询商户审核状态执行时间延长

lcl 11 ay önce
ebeveyn
işleme
c0b097fc09

+ 10 - 0
Controllers/HomeController.cs

@@ -29,6 +29,16 @@ namespace MySystem.Controllers
             return View();
         }
 
+        // public string test2(int id)
+        // {
+        //     WebCMSEntities db = new WebCMSEntities();
+        //     MerchantAddInfo AddInfo = db.MerchantAddInfo.FirstOrDefault(m => m.Id == id) ?? new MerchantAddInfo();
+        //     AddInfo.MchtNo = "";
+        //     string result = HaoDaHelper.Instance.AddNewMerchant(AddNewMerchantSetUtil.SetValue(AddInfo));
+        //     db.Dispose();
+        //     return result;
+        // }
+
         public string test()
         {
             // List<int> MerchantIds = new List<int>();

+ 1 - 0
Entity/HaoDa/AddNewMerchant.cs

@@ -39,6 +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 List<ImageItem> images { get; set; }//图片
 
     }

+ 2 - 1
Util/HaoDa/CheckWeChatSignService.cs

@@ -58,8 +58,9 @@ namespace MySystem
                         MerchantId = dr["Id"].ToString(),
                         MerchantNo = dr["MchtNo"].ToString(),
                     });
+                    Thread.Sleep(10000);
                 }
-                Thread.Sleep(120000);
+                Thread.Sleep(3600000);
             }
         }
 

+ 7 - 0
Util/HaoDa/HaoDaHelper.cs

@@ -38,6 +38,12 @@ namespace MySystem
         string BoxPublicKey = "";
         public static string BrhCode = "030145";
 
+        // string BoxRequestUrl = "https://openapi.iboxpay.com";
+        // string BoxAppId = "AP8322645764893728768";
+        // string BoxAppSecret = "je1TElprp3jzWETsG3FcWqtmpreEHqZS";
+        // string BoxPublicKey = "";
+        // public static string BrhCode = "";
+
 
         /// <summary>
         /// 新创建商户
@@ -47,6 +53,7 @@ namespace MySystem
         public string AddNewMerchant(AddNewMerchant request)
         {
             request.brh = BrhCode;
+            // request.oprInvitedCode = "T1715836";
             LogHelper.Instance.WriteLog(DateTime.Now.ToString(), "好哒新创建商户");
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);