|
@@ -19,19 +19,17 @@ using Quartz;
|
|
|
|
|
|
namespace FCS.Crawler
|
|
|
{
|
|
|
- public class Update_PlayerJob : CommonJob, IJob
|
|
|
+ public class Update_PlayerJob : CommonJob
|
|
|
{
|
|
|
- private delegate void UpdateClick();
|
|
|
- public void Execute(IJobExecutionContext context)
|
|
|
+ public Update_PlayerJob()
|
|
|
{
|
|
|
- Config = CommonHelper.GetConfigFromDataMap(context.JobDetail.JobDataMap);
|
|
|
- Click();
|
|
|
+ logName = "Update_RealTimeJob";
|
|
|
}
|
|
|
|
|
|
public void Click()
|
|
|
{
|
|
|
ThreadPool.SetMaxThreads(200, 200);
|
|
|
- CommonHelper.LogBD("开始Update_PlayerJob");
|
|
|
+ CommonHelper.LogBD("开始Update_PlayerJob", logName);
|
|
|
new IPJob().GetIP();
|
|
|
new FootBallTeamsJob().GetAll();
|
|
|
new FootballPlayerJob().GetAll();
|
|
@@ -42,13 +40,13 @@ namespace FCS.Crawler
|
|
|
new RankingListJob().Click();
|
|
|
new ShooterListJob().Click();
|
|
|
new UpperLlowerSingleDoubleJob().Click();
|
|
|
-
|
|
|
+
|
|
|
while (true)
|
|
|
{
|
|
|
if (CommonHelper.ThreadsFinsh())
|
|
|
break;
|
|
|
}
|
|
|
- CommonHelper.LogBD("Update_PlayerJob完成");
|
|
|
+ CommonHelper.LogBD("Update_PlayerJob完成", logName);
|
|
|
}
|
|
|
}
|
|
|
|