lichunlei 2 rokov pred
rodič
commit
890ab3060b
1 zmenil súbory, kde vykonal 9 pridanie a 8 odobranie
  1. 9 8
      AppStart/Helper/StatService.cs

+ 9 - 8
AppStart/Helper/StatService.cs

@@ -1725,15 +1725,16 @@ namespace MySystem
         {
             while (true)
             {
-                if(DateTime.Now.Day == 1 && DateTime.Now.Hour > 2)
+                if(DateTime.Now.Day == 2 && DateTime.Now.Hour > 4)
                 {
-                    string Month = DateTime.Now.AddDays(-1).ToString("yyyy-MM");
-                    string flag = function.ReadInstance("/ProfitFlag/" + Month + ".txt");
-                    if (string.IsNullOrEmpty(flag))
-                    {
-                        function.WritePage("/ProfitFlag/", Month + ".txt", DateTime.Now.ToString("HH:mm:ss"));
-                        StatUserLevelStart();
-                    }
+                    // string Month = DateTime.Now.AddDays(-1).ToString("yyyy-MM");
+                    // string flag = function.ReadInstance("/ProfitFlag/" + Month + ".txt");
+                    // if (string.IsNullOrEmpty(flag))
+                    // {
+                    //     function.WritePage("/ProfitFlag/", Month + ".txt", DateTime.Now.ToString("HH:mm:ss"));
+                    //     StatUserLevelStart();
+                    // }
+                    ProfitHelperV2.Instance.StatProfit();
                 }
                 Thread.Sleep(600000);
             }