Commit db738349 authored by 黄奎's avatar 黄奎

服务修改

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