Quellcode durchsuchen

批量调整立刷微智能费率

lcl vor 7 Monaten
Ursprung
Commit
d2fe7f8252
2 geänderte Dateien mit 22 neuen und 7 gelöschten Zeilen
  1. BIN
      .DS_Store
  2. 22 7
      AppStart/Helper/TmpService.cs

BIN
.DS_Store


+ 22 - 7
AppStart/Helper/TmpService.cs

@@ -84,6 +84,11 @@ namespace MySystem
 
         public void poscheck()
         {
+            if(RedisDbconn.Instance.Get<string>("TmpService_poscheck_flag") == "1")
+            {
+                return;
+            }
+            RedisDbconn.Instance.Set("TmpService_poscheck_flag", "1");
             WebCMSEntities db = new WebCMSEntities();
             try
             {
@@ -92,13 +97,13 @@ namespace MySystem
                 List<string> mernos = new List<string>();
 
                 //金控
-                poslist = function.ReadInstance("tmpdata/jk.txt").Replace("\r", "").Split('\n').ToList();
-                foreach(string pos in poslist)
-                {
-                    string result = PublicImportDataService.Instance.LkbSetFee(pos, 2.99M, 300);
-                    function.WriteLog(pos + "\n" + result + "\n\n", "tmp金控临时费率");
-                    Thread.Sleep(500);
-                }
+                // poslist = function.ReadInstance("tmpdata/jk.txt").Replace("\r", "").Split('\n').ToList();
+                // foreach(string pos in poslist)
+                // {
+                //     string result = PublicImportDataService.Instance.LkbSetFee(pos, 2.99M, 300);
+                //     function.WriteLog(pos + "\n" + result + "\n\n", "tmp金控临时费率");
+                //     Thread.Sleep(500);
+                // }
 
                 // //盛付通
                 // poslist = function.ReadInstance("tmpdata/1.txt").Replace("\r", "").Split('\n').ToList();
@@ -209,6 +214,16 @@ namespace MySystem
                 //         Thread.Sleep(500);
                 //     }
                 // }
+
+                //立刷微智能
+                poslist = function.ReadInstance("tmpdata/lis.txt").Replace("\r", "").Split('\n').ToList();
+                foreach(string pos in poslist)
+                {
+                    string[] parts = pos.Split('|');
+                    string result = PublicImportDataService.Instance.SetLiSWeFee(parts[0], parts[1], "0.63", "0");
+                    function.WriteLog(parts[0] + "\n" + parts[1] + "\n" + result + "\n\n", "tmp立刷微智能临时费率");
+                    Thread.Sleep(1500);
+                }
             }
             catch(Exception ex)
             {