Ver Fonte

修改每月1号自动升级和分润执行时间

lichunlei há 2 anos atrás
pai
commit
48039efac9
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      AppStart/Helper/StatService.cs

+ 3 - 3
AppStart/Helper/StatService.cs

@@ -1704,7 +1704,7 @@ namespace MySystem
         {
             while (true)
             {
-                if(DateTime.Now.Day <= 3 && DateTime.Now.Hour > 1)
+                if(DateTime.Now.Day == 1 && DateTime.Now.Hour > 2)
                 {
                     string Month = DateTime.Now.AddDays(-1).ToString("yyyy-MM");
                     string flag = function.ReadInstance("/ProfitFlag/" + Month + ".txt");
@@ -1714,7 +1714,7 @@ namespace MySystem
                         StatUserLevelStart();
                     }
                 }
-                Thread.Sleep(60000);
+                Thread.Sleep(600000);
             }
         }
         public void StatUserLevelStart()
@@ -1789,7 +1789,7 @@ namespace MySystem
             }
             db.Dispose();
 
-            // ProfitHelperV2.Instance.StatProfit(); //统计分润
+            ProfitHelperV2.Instance.StatProfit(); //统计分润
         }
         public void StatUserLevelStartTest()
         {