Commit 8aaac8a6 authored by 黄奎's avatar 黄奎

定时任务修改

parent 0d3ece04
......@@ -115,7 +115,7 @@ namespace Edu.WebApi.Timers
marketTimer= new System.Timers.Timer()
{
Interval = (1000 * 60) * (1) //1分钟检测一次
Interval = (1000) * (30) //30秒检测一次
};
marketTimer.Elapsed += new System.Timers.ElapsedEventHandler(DealMarketConsultantData);
marketTimer.Enabled = true;
......@@ -155,7 +155,7 @@ namespace Edu.WebApi.Timers
if (Interlocked.Exchange(ref marketconsultant_Timer, 1) == 0)
{
//凌晨00:30执行
if (DateTime.Now.Hour == 0 && DateTime.Now.Minute == 30)
if (DateTime.Now.Hour == 1 && DateTime.Now.Minute == 5)
{
marketConsultantModule.CreateConsultantDataModule(DateTime.Now);
marketConsultantModule.CreateMarketDataModule(DateTime.Now);
......
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