Przeglądaj źródła

领导人达标奖励每天执行

lcl 1 rok temu
rodzic
commit
33d66522eb
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      AppStart/Helper/LeaderCompPrizeHelper.cs

+ 2 - 2
AppStart/Helper/LeaderCompPrizeHelper.cs

@@ -43,12 +43,12 @@ namespace MySystem
 
         public void Ready(string curMonth)
         {
-            string check = function.ReadInstance("/LeaderComp/" + curMonth + ".txt");
+            string check = function.ReadInstance("/LeaderComp/" + DateTime.Now.ToString("yyyyMMdd") + ".txt");
             if(!string.IsNullOrEmpty(check))
             {
                 return;
             }
-            function.WritePage("/LeaderComp/", curMonth + ".txt", DateTime.Now.ToString());
+            function.WritePage("/LeaderComp/", DateTime.Now.ToString("yyyyMMdd") + ".txt", DateTime.Now.ToString());
             CustomerSqlConn.op("delete from LeaderCompTradeStat;delete from LeaderCompTmp;delete from LeaderCompPrize;delete from LeaderCompAddTrade;", MysqlConn.SqlConnStr);
             Thread.Sleep(10000);
             DateTime Start = DateTime.Parse("2023-06-01 00:00:00");