Browse Source

手动补数据

lichunlei 1 year ago
parent
commit
7a728115c0
2 changed files with 17 additions and 2 deletions
  1. 15 0
      Controllers/HomeController.cs
  2. 2 2
      Util/HaoDa/TestHaoDaService.cs

+ 15 - 0
Controllers/HomeController.cs

@@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Mvc;
 using Microsoft.Extensions.Logging;
 using Library;
 using LitJson;
+using System.Data;
 
 namespace MySystem.Controllers
 {
@@ -36,5 +37,19 @@ namespace MySystem.Controllers
             // MqLinksHelper.Instance.doSomething("LKB01230600250000585","100");
             return "ok";
         }
+
+        public string bindapp()
+        {
+            DataTable dt = CustomerSqlConn.dtable("select Id,MchtNo from MerchantAddInfo where HdStatus=3 and CreateDate>='2023-10-01 00:00:00' and MchtNo!='' and MchtNo is not null", AppConfig.Base.SqlConnStr);
+            foreach(DataRow dr in dt.Rows)
+            {
+                CheckWeChatSignService.Instance.StartDo(new QueryMerchantStatus()
+                {
+                    MerchantId = dr["Id"].ToString(),
+                    MerchantNo = dr["MchtNo"].ToString(),
+                });
+            }
+            return "ok";
+        }
     }
 }

+ 2 - 2
Util/HaoDa/TestHaoDaService.cs

@@ -34,11 +34,11 @@ namespace MySystem
             // AlipayAddInfo(828,"202309011037906510");//查询支付宝开户意愿申请状态
             // WeChatAddInfo(826);//提交微信开户意愿申请单
             // WeChatAddInfo(825,"2000002424428809");//查询微信开户意愿申请状态
-            // QueryMerchantStatus(832);//新建商户查询状态
+            QueryMerchantStatus(867);//新建商户查询状态
             // ConfiemMer(808);//新建商户
             // ChangeMerchantCard(1);//商户修改银行卡
             // AddOpenDivideAccounts(832); //添加分账方
-            QueryAuthStatus(5);//查询实名认证状态
+            // QueryAuthStatus(5);//查询实名认证状态
             // WeChatFunctionForHD.Instance.QueryAuthMerchant("600955391");
             // AlipayFunctionForHD.Instance.AuthOrderAuthQuery("2088820718243322");
         }