Kernel.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. namespace App\Console;
  3. use Illuminate\Console\Scheduling\Schedule;
  4. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  5. class Kernel extends ConsoleKernel
  6. {
  7. /**
  8. * The Artisan commands provided by your application.
  9. *;
  10. * @var array
  11. */
  12. protected $commands = [
  13. Commands\Inspire::class,
  14. Commands\test2::class,
  15. Commands\Test3::class,
  16. Commands\SmartPush\KeepContinueRead::class,
  17. Commands\SmartPush\KeepContinueReadV2::class,
  18. Commands\SmartPush\KeepContinueReadV3::class,
  19. Commands\GZH\FansStat::class,
  20. Commands\GZH\ForceUserProperty::class,
  21. Commands\Wechat\AdReport::class,
  22. Commands\Wechat\AdReportTest::class,
  23. Commands\Wechat\GdtAdReport::class,
  24. Commands\Wechat\ReportRetry::class,
  25. Commands\SmartPush\remindSign::class,
  26. Commands\Recommend\UpdateHighQualityBooks::class,
  27. Commands\SmartPush\ForceSubscribeDelayMsg::class,
  28. Commands\SmartPush\CouponExpirePush::class,
  29. Commands\BatchWechatMaterial\SyncWechatMaterialStatistics::class,
  30. Commands\SmartPush\RfmPush::class,
  31. //更新推送
  32. Commands\SmartPush\BookUpdatePush::class,
  33. // 微信素材批量发送
  34. Commands\BatchWechatMaterial\SendCustomWechatMaterial::class,
  35. // 删除微信素材消息
  36. Commands\ActionTrigger\BatchWechatMaterial\DelWechatMaterial::class,
  37. // 预览微信素材消息
  38. Commands\ActionTrigger\BatchWechatMaterial\PreviewWechatMaterial::class,
  39. // 同步微信素材消息
  40. Commands\ActionTrigger\BatchWechatMaterial\SyncZsWechatMaterial::class,
  41. // 测试微信素材
  42. Commands\ActionTrigger\BatchWechatMaterial\testWechatMaterial::class,
  43. // 测试微信群发
  44. Commands\ActionTrigger\BatchWechatMaterial\testWechatMaterialMsgSend::class,
  45. ];
  46. /**
  47. * Define the application's command schedule.
  48. *
  49. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  50. * @return void
  51. */
  52. protected function schedule(Schedule $schedule)
  53. {
  54. $schedule->command('SmartPush:KeepContinueReadV3')->cron('02 7-23 * * *');
  55. $schedule->command('SmartPush:KeepContinueReadV2')->cron('06 7-23 * * *');
  56. //拉取公众号后台粉丝数据
  57. $schedule->command('gzh:fansStat')->dailyAt('09:04');
  58. //拉取公众号后台昵称
  59. //$schedule->command('gzh:force_user_property')->everyFiveMinutes();
  60. //微信广告上报
  61. $schedule->command('Wechat:WeixinAdReport')->everyFiveMinutes();
  62. //微信gdt上报
  63. $schedule->command('Wechat:GdtAdReport --type=order')->everyFiveMinutes();
  64. $schedule->command('Wechat:GdtAdReport --type=register')->everyFiveMinutes();
  65. //$schedule->command('Wechat:ReportRetry')->hourly();
  66. //未签到提醒
  67. $schedule->command('SmartPush:remindSign --start=0 --end=70000000')->dailyAt('08:01');
  68. $schedule->command('SmartPush:remindSign --start=70000000 --end=100000000')->dailyAt('08:03');
  69. $schedule->command('SmartPush:remindSign --start=100000000 --end=118000000')->dailyAt('08:05');
  70. $schedule->command('SmartPush:remindSign --start=118000000 --end=126000000')->dailyAt('08:07');
  71. $schedule->command('SmartPush:remindSign --start=126000000 --end=132000000')->dailyAt('08:09');
  72. $schedule->command('SmartPush:remindSign --start=132000000 --end=136000000')->dailyAt('08:11');
  73. $schedule->command('SmartPush:remindSign --start=136000000 --end=139000000')->dailyAt('08:13');
  74. $schedule->command('SmartPush:remindSign --start=139000000 --end=140700000')->dailyAt('08:14');
  75. $schedule->command('SmartPush:remindSign --start=140700000 --end=141150000')->dailyAt('08:14');
  76. $schedule->command('SmartPush:remindSign --start=141150000 --end=141270000')->dailyAt('08:15');
  77. $schedule->command('SmartPush:remindSign --start=141270000 --end=141400000')->dailyAt('08:16');
  78. $schedule->command('SmartPush:remindSign --start=141400000 --end=141550000')->dailyAt('08:17');
  79. $schedule->command('SmartPush:remindSign --start=141550000 --end=141750000')->dailyAt('08:18');
  80. $schedule->command('SmartPush:remindSign --start=141550000 --end=141680000')->dailyAt('08:19');
  81. $schedule->command('SmartPush:remindSign --start=141680000 --end=-1')->dailyAt('08:21');
  82. $schedule->command('UpdateHighQualityBooks')->hourly();
  83. //优惠券过期提醒
  84. $schedule->command('SmartPush:CouponExpirePush')->hourly();
  85. //$schedule->command('SmartPush:ForceSubscribeDelayMsg')->everyFiveMinutes();
  86. $schedule->command('SmartPush:ForceSubscribeDelayMsg')->cron('*/2 * * * *');
  87. //微信批量素材
  88. $schedule->command('BatchWechatMaterial:SendCustomWechatMaterial')->everyFiveMinutes();
  89. //rfm 推送*******************************
  90. //新用户大礼包-小M值用户
  91. $schedule->command('SmartPush:RfmPush --type=sm --time=4')->cron('*/59 * * * *');
  92. //新用户大礼包-大M值用户
  93. $schedule->command('SmartPush:RfmPush --type=bm --time=23')->cron('*/58 * * * *');
  94. //新用户大礼包-全量用户
  95. $schedule->command('SmartPush:RfmPush --type=all --time=23')->cron('*/57 * * * *');
  96. //新用户大礼包-免费用户
  97. $schedule->command('SmartPush:RfmPush --type=free-24 --time=24')->cron('*/56 * * * *');
  98. //新用户大礼包-免费用户
  99. $schedule->command('SmartPush:RfmPush --type=free-24 --time=36')->cron('*/55 * * * *');
  100. //更新推送
  101. $schedule->command('SmartPush:BookUpdatePush')->cron('*/6 * * * *');
  102. }
  103. }