Explorar el Código

金控不提交费率,批量处理25年后绑定的金控机具,设置为0.7+3

lcl hace 2 semanas
padre
commit
f719b8b024
Se han modificado 5 ficheros con 41 adiciones y 19 borrados
  1. BIN
      .DS_Store
  2. 10 10
      AppStart/Helper/SetDepositPostService.cs
  3. 16 1
      AppStart/Helper/TmpService.cs
  4. 14 7
      Controllers/HomeController.cs
  5. 1 1
      Startup.cs

BIN
.DS_Store


+ 10 - 10
AppStart/Helper/SetDepositPostService.cs

@@ -76,16 +76,16 @@ namespace MySystem
                             }
                             if(BrandId == 1 || BrandId == 3) //金控
                             {
-                                addRate = addRate * 100;
-                                string content = PublicImportDataService.Instance.LkbSetFee(PosSn, Fee, addRate);
-                                JsonData obj = JsonMapper.ToObject(content);
-                                if (obj["respCode"].ToString() == "00")
-                                {
-                                }
-                                else
-                                {
-                                    string msg = obj["respMsg"].ToString();
-                                }
+                                // addRate = addRate * 100;
+                                // string content = PublicImportDataService.Instance.LkbSetFee(PosSn, Fee, addRate);
+                                // JsonData obj = JsonMapper.ToObject(content);
+                                // if (obj["respCode"].ToString() == "00")
+                                // {
+                                // }
+                                // else
+                                // {
+                                //     string msg = obj["respMsg"].ToString();
+                                // }
                             }
                             else if(BrandId == 2) //开店宝
                             {

+ 16 - 1
AppStart/Helper/TmpService.cs

@@ -17,7 +17,7 @@ namespace MySystem
 
         public void Start()
         {
-            Thread th = new Thread(SetLkbDeposit);
+            Thread th = new Thread(poscheck);
             th.IsBackground = true;
             th.Start();
         }
@@ -81,5 +81,20 @@ namespace MySystem
                 Thread.Sleep(100);
             }
         }
+
+        public void poscheck()
+        {
+            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);
+                }
+            }
+        }
     }
 }

+ 14 - 7
Controllers/HomeController.cs

@@ -53,13 +53,20 @@ namespace MySystem.Controllers
         {
             // string s = SetDepositPostService.Instance.LDZZBServiceFeeQuery("00007302225171000028");
             // string s = SetDepositPostService.Instance.LDZZBServiceFee("0000730222517E000019", 1);
-            string s = SetDepositPostService.Instance.LDZZBFeeRate("825815174643591", 0.63M, 0);
-            // string s = SetDepositPostService.Instance.LDZZBFeeRateQuery("825815174643591");
-            JsonData jsonObj = JsonMapper.ToObject(s);
-            string aesKey = jsonObj["encryptKey"].ToString();
-            aesKey = SetDepositPostService.Instance.LDZZBDecrypt(aesKey);
-            string content = SetDepositPostService.Instance.AesDecrypt(jsonObj["data"].ToString(), aesKey);
-            return content;
+            // string s = SetDepositPostService.Instance.LDZZBFeeRate("825815174643591", 0.63M, 0);
+            // // string s = SetDepositPostService.Instance.LDZZBFeeRateQuery("825815174643591");
+            // JsonData jsonObj = JsonMapper.ToObject(s);
+            // string aesKey = jsonObj["encryptKey"].ToString();
+            // aesKey = SetDepositPostService.Instance.LDZZBDecrypt(aesKey);
+            // string content = SetDepositPostService.Instance.AesDecrypt(jsonObj["data"].ToString(), aesKey);
+            // return content;
+            // string s = PublicImportDataService.Instance.LkbSetFee("00003102702301319427698", 0.63M, 0);
+            // JsonData jsonObj = JsonMapper.ToObject(s);
+            // string data = jsonObj["data"].ToString();
+            // data = PublicImportDataService.Instance.LkbDecrypt(data);
+            // return s + "\n<br>" + data;
+            
+            return "ok";
         }
     
     }

+ 1 - 1
Startup.cs

@@ -154,7 +154,7 @@ namespace MySystem
                 ChangePosFeeQueue.Instance.StartEverTime(); //设置服务费
                 // SetSftFeeService.Instance.Start(); //盛付通420天费率加万2
 
-                // TmpService.Instance.Start();
+                TmpService.Instance.Start();
             }
         }