lyl 6 gadi atpakaļ
vecāks
revīzija
2de26a391f

+ 6 - 8
FCS.Crawler/Content/UpdateService/UpdateJobs/Update_PlayerJob.cs

@@ -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);
         }
     }
 

+ 1 - 7
FCS.Crawler/Content/UpdateService/UpdateJobs/Update_RealTimeJob.cs

@@ -21,18 +21,12 @@ using Quartz;
 
 namespace FCS.Crawler
 {
-    public class Update_RealTimeJob : CommonJob, IJob
+    public class Update_RealTimeJob : CommonJob
     {
         public Update_RealTimeJob()
         {
             logName = "Update_RealTimeJob";
         }
-        public void Execute(IJobExecutionContext context)
-        {
-            Config = CommonHelper.GetConfigFromDataMap(context.JobDetail.JobDataMap);
-            Click();
-        }
-
         public void Click()
         {
             ThreadPool.SetMaxThreads(200, 200);