lcl 11 mesiacov pred
rodič
commit
d48ec1c56f
1 zmenil súbory, kde vykonal 26 pridanie a 5 odobranie
  1. 26 5
      Controllers/HomeController.cs

+ 26 - 5
Controllers/HomeController.cs

@@ -56,7 +56,7 @@ namespace MySystem.Controllers
 
         public string test()
         {
-            string result = "";
+            string result = "ok";
             // List<ReceiverList> Receivers = new List<ReceiverList>();
             // Receivers.Add(new ReceiverList()
             // {
@@ -83,11 +83,32 @@ namespace MySystem.Controllers
 
             // result = new WeChatFunction().GetPublicKey();
 
-            string content = function.ReadInstance("1.txt");
-            string[] list = content.Split('\n');
-            foreach(string sub in list)
+            // string content = function.ReadInstance("1.txt");
+            // string[] list = content.Split('\n');
+            // foreach(string sub in list)
+            // {
+            //     RedisDbconn.Instance.AddList("WeChatPayBackHd", sub);
+            // }
+
+            string logcontent = function.ReadInstance("直联微信.log");
+            string[] contents = logcontent.Split('\n');
+            foreach(string content in contents)
+            {
+                RedisDbconn.Instance.AddList("WeChatPayBack", content);
+            }
+
+            logcontent = function.ReadInstance("银联微信.log");
+            contents = logcontent.Split('\n');
+            foreach(string content in contents)
+            {
+                RedisDbconn.Instance.AddList("WeChatPayBackHd", content);
+            }
+
+            logcontent = function.ReadInstance("银联支付宝.log");
+            contents = logcontent.Split('\n');
+            foreach(string content in contents)
             {
-                RedisDbconn.Instance.AddList("WeChatPayBackHd", sub);
+                RedisDbconn.Instance.AddList("WeChatPayBackHd", content);
             }
 
             return result;