소스 검색

领导人达标奖励每天执行

lcl 1 년 전
부모
커밋
33d66522eb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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");