Update_PlayerJob.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading;
  7. using System.Threading.Tasks;
  8. using FCS.Common;
  9. using FCS.Crawler.ZCLotteryAgainst;
  10. using FCS.Crawler.ZCLotteryGames;
  11. using FCS.Crawler.ZCLotteryGrouping;
  12. using FCS.Crawler.ZCLotteryIP;
  13. using FCS.Crawler.ZCLotteryMatchs;
  14. using FCS.Crawler.ZCLotteryScore;
  15. using FCS.Crawler.ZCLotteryTeam;
  16. using FCS.Crawler.ZCMatchRankingList;
  17. using FCS.Interface;
  18. using Quartz;
  19. namespace FCS.Crawler
  20. {
  21. public class Update_PlayerJob : CommonJob, IJob
  22. {
  23. private delegate void UpdateClick();
  24. public void Execute(IJobExecutionContext context)
  25. {
  26. Config = CommonHelper.GetConfigFromDataMap(context.JobDetail.JobDataMap);
  27. Click();
  28. }
  29. public void Click()
  30. {
  31. ThreadPool.SetMaxThreads(200, 200);
  32. CommonHelper.LogBD("开始Update_PlayerJob");
  33. new IPJob().GetIP();
  34. //new FootBallTeamsJob().GetAll();
  35. //new FootballPlayerJob().GetAll();
  36. new GoalSingleDbListJob().Click();
  37. new MakeBallListJob().Click();
  38. new RankingListJob().Click();
  39. new ShooterListJob().Click();
  40. new UpperLlowerSingleDoubleJob().Click();
  41. while (true)
  42. {
  43. if (CommonHelper.ThreadsFinsh())
  44. break;
  45. }
  46. CommonHelper.LogBD("Update_PlayerJob完成");
  47. }
  48. }
  49. }