This commit is contained in:
2025-07-01 14:23:17 +08:00
parent 3a4d247d3d
commit 97efc6eb11
2 changed files with 331 additions and 1 deletions
+1 -1
View File
@@ -54,7 +54,7 @@
//定义一个定时器,并开启和配置相关属性
System.Timers.Timer Wtimer = new System.Timers.Timer();
//执行任务的周期 ,20分钟
Wtimer.Interval = 1000 * 60 * 40;
Wtimer.Interval = 1000 * 60 * 60;
Wtimer.Enabled = true;
Wtimer.Start();
Wtimer.Elapsed += new System.Timers.ElapsedEventHandler(Wtimer_Elapsed);