|
@@ -1736,16 +1736,15 @@ namespace MySystem
|
|
|
{
|
|
|
while (true)
|
|
|
{
|
|
|
- if(DateTime.Now.Day == 9 && DateTime.Now.Hour > 4)
|
|
|
+ if(DateTime.Now.Day == 1 && 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();
|
|
|
- // }
|
|
|
- ProfitHelper.Instance.StatProfit();
|
|
|
+ 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();
|
|
|
+ }
|
|
|
}
|
|
|
Thread.Sleep(600000);
|
|
|
}
|