Commit db738349 authored by 黄奎's avatar 黄奎

服务修改

parent e92500c5
......@@ -24,15 +24,29 @@ namespace EduSpider
if (times == 1)
{
InfoHelper.WriteLine(string.Format("{0} 执行方法.", date.ToString("yyyy-MM-dd HH:mm")));
try
{
//ClassIn数据
new ClassInFlow().StartAsync();
}
catch(Exception ex)
{
InfoHelper.WriteLine(ex.Message);
}
Thread.Sleep(stopTime);
}
if (date.Minute == 0)
{
InfoHelper.WriteLine(string.Format("{0} 执行方法.", date.ToString("yyyy-MM-dd HH:mm")));
try
{
//ClassIn数据
new ClassInFlow().StartAsync();
}
catch (Exception ex)
{
InfoHelper.WriteLine(ex.Message);
}
Thread.Sleep(stopTime);
}
times++;
......
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