DuGuYang 1 rok pred
rodič
commit
3178af01c7
1 zmenil súbory, kde vykonal 10 pridanie a 10 odobranie
  1. 10 10
      AppStart/Helper/StatResetService2.cs

+ 10 - 10
AppStart/Helper/StatResetService2.cs

@@ -36,16 +36,16 @@ namespace MySystem
         }
         public void StartResetMerchantDo()
         {
-            // while (true)
-            // {
-            //     string content = RedisDbconn.Instance.RPop<string>("ResetMerchantStatDataQueue2");
-            //     if (!string.IsNullOrEmpty(content))
-            //     {
-            //         StatResetMerchantAmount(content);
-            //     }
-            //     Thread.Sleep(10000);
-            // }
-            StatResetMerchantAmount("{\"MerchantId\":\"" + 1415 + "\",\"StartDate\":\"" + 20231127 + "\",\"EndDate\":\"" + 20231127 + "\"}");
+            while (true)
+            {
+                string content = RedisDbconn.Instance.RPop<string>("ResetMerchantStatDataQueue2");
+                if (!string.IsNullOrEmpty(content))
+                {
+                    StatResetMerchantAmount(content);
+                }
+                Thread.Sleep(10000);
+            }
+            // StatResetMerchantAmount("{\"MerchantId\":\"" + 1415 + "\",\"StartDate\":\"" + 20231127 + "\",\"EndDate\":\"" + 20231127 + "\"}");
         }
         public void StatResetMerchantAmount(string content)
         {