Преглед на файлове

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

lichunlei преди 2 години
родител
ревизия
48039efac9
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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()
         {