Commit bbc0e987 authored by liudong1993's avatar liudong1993

清理二维码临时文件

parent 32313da9
......@@ -59,6 +59,17 @@ namespace Mall.WebApi.Timers
if (fi.CreationTime < DateTime.Now.AddDays(-1))
fi.Delete();
}
#region 二维码的
DirectoryInfo QRdir = new DirectoryInfo(rootBook + "/upfile/code");
foreach (FileInfo fi in QRdir.GetFiles())
{
if (fi.CreationTime < DateTime.Now.AddDays(-1))
fi.Delete();
}
#endregion
}
catch
{
......
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