Commit 9611d7f9 authored by liudong1993's avatar liudong1993
parents c19bf777 6f3ab5b7
......@@ -38,7 +38,7 @@ namespace Mall.WebApi.Timers
public static void ClearFile(object sender, System.Timers.ElapsedEventArgs e) {
if (Interlocked.Exchange(ref inTimer, 1) == 0)
{
if (DateTime.Now.Hour == 1)
if (DateTime.Now.Hour == 1 || DateTime.Now.Hour == 8 || DateTime.Now.Hour == 21)
{
LogHelper.Write("开始清理临时文件");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment