Browse Source

测试力pos接口

lcl 1 week ago
parent
commit
0f38eba821
5 changed files with 21 additions and 12 deletions
  1. BIN
      .DS_Store
  2. 1 1
      AppStart/Helper/SetDepositPostService.cs
  3. 11 4
      AppStart/LogHelper.cs
  4. 3 1
      Controllers/HomeController.cs
  5. 6 6
      Startup.cs

BIN
.DS_Store


+ 1 - 1
AppStart/Helper/SetDepositPostService.cs

@@ -1326,7 +1326,7 @@ namespace MySystem
             string sign = LDZZBSignData(signString);
             reqdic.Add("sign", sign);
             string reqBody = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += "\n请求参数\n" + reqString;
+            logString += "\n请求参数\n" + reqBody;
             logString += "\n请求地址\n" + LDZZBRequestUrl + "/" + path;
             string content = function.PostWebRequest(LDZZBRequestUrl + "/" + path, reqBody, "application/json");
             logString += "\n返回报文\n" + content + "\n\n";

+ 11 - 4
AppStart/LogHelper.cs

@@ -14,10 +14,17 @@ public class LogHelper
 
     public void WriteLog(string Content, string Topic)
     {
-        Dictionary<string, string> dic = new Dictionary<string, string>();
-        dic.Add("Topic", Topic);
-        dic.Add("Content", Content);
-        RedisDbconn.Instance.AddList("SlsLogQueue", Newtonsoft.Json.JsonConvert.SerializeObject(dic));
+        if(Library.ConfigurationManager.EnvironmentFlag == 2)
+        {
+            Dictionary<string, string> dic = new Dictionary<string, string>();
+            dic.Add("Topic", Topic);
+            dic.Add("Content", Content);
+            RedisDbconn.Instance.AddList("SlsLogQueue", Newtonsoft.Json.JsonConvert.SerializeObject(dic));
+        }
+        else
+        {
+            function.WriteLog(Content, Topic);
+        }
     }
 
 }

+ 3 - 1
Controllers/HomeController.cs

@@ -51,7 +51,9 @@ namespace MySystem.Controllers
 
         public string test()
         {
-            string s = SetDepositPostService.Instance.LDZZBServiceFeeQuery("000tsyd0003");
+            // string s = SetDepositPostService.Instance.LDZZBServiceFeeQuery("00007302225171000028");
+            string s = SetDepositPostService.Instance.LDZZBServiceFee("00007302225171000029", 1);
+            // string s = SetDepositPostService.Instance.LDZZBFeeRate("00007302225171000028", 0.63M, 3M);
             JsonData jsonObj = JsonMapper.ToObject(s);
             string aesKey = jsonObj["encryptKey"].ToString();
             aesKey = SetDepositPostService.Instance.LDZZBDecrypt(aesKey);

+ 6 - 6
Startup.cs

@@ -147,12 +147,12 @@ namespace MySystem
             }
             if(Library.ConfigurationManager.EnvironmentFlag == 2)
             {
-                SetFeeFlagService.Instance.Start(); //85天提前通知创客费率调升消息
-                SetDepositService.Instance.Start(); //调整费率(通知、标记)
-                SetDepositPostService.Instance.Start(); //提交支付公司设置费率接口
-                SetDepositPostService.Instance.StartKdb(); //监控开店宝费率设置结果
-                ChangePosFeeQueue.Instance.StartEverTime(); //设置服务费
-                SetSftFeeService.Instance.Start(); //盛付通420天费率加万2
+                // SetFeeFlagService.Instance.Start(); //85天提前通知创客费率调升消息
+                // SetDepositService.Instance.Start(); //调整费率(通知、标记)
+                // SetDepositPostService.Instance.Start(); //提交支付公司设置费率接口
+                // SetDepositPostService.Instance.StartKdb(); //监控开店宝费率设置结果
+                // ChangePosFeeQueue.Instance.StartEverTime(); //设置服务费
+                // SetSftFeeService.Instance.Start(); //盛付通420天费率加万2
 
                 // TmpService.Instance.Start();
             }