Explorar el Código

设置金控指定机具费率

lcl hace 2 semanas
padre
commit
34edc5741f
Se han modificado 1 ficheros con 16 adiciones y 8 borrados
  1. 16 8
      AppStart/Helper/TmpService.cs

+ 16 - 8
AppStart/Helper/TmpService.cs

@@ -84,16 +84,24 @@ namespace MySystem
 
         public void poscheck()
         {
-            string[] poslist = function.ReadInstance("pos.txt").Split('\n');
-            List<string> pos25 = function.ReadInstance("pos25.txt").Split('\n').ToList();
+            // string[] poslist = function.ReadInstance("pos.txt").Split('\n');
+            // List<string> pos25 = function.ReadInstance("pos25.txt").Split('\n').ToList();
+            // foreach(string possn in poslist)
+            // {
+            //     if(!pos25.Contains(possn))
+            //     {
+            //         string result = PublicImportDataService.Instance.LkbSetFee(possn, 0.7M, 300);
+            //         function.WriteLog(possn + "\n" + result + "\n\n", "25年前的金控机具费率");
+            //         Thread.Sleep(500);
+            //     }
+            // }
+            string[] poslist = function.ReadInstance("posset.txt").Split('\n');
             foreach(string possn in poslist)
             {
-                if(!pos25.Contains(possn))
-                {
-                    string result = PublicImportDataService.Instance.LkbSetFee(possn, 0.7M, 300);
-                    function.WriteLog(possn + "\n" + result + "\n\n", "25年前的金控机具费率");
-                    Thread.Sleep(500);
-                }
+                string[] data = possn.Split('|');
+                string result = PublicImportDataService.Instance.LkbSetFee(data[0], decimal.Parse(data[1]), 0);
+                function.WriteLog(possn + "\n" + result + "\n\n", "金控机具临时费率");
+                Thread.Sleep(500);
             }
         }
     }