Kernel.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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\Test::class,
  15. Commands\SmartPush\KeepContinueReadV2::class,
  16. Commands\GZH\FansStat::class,
  17. Commands\GZH\ForceUserProperty::class,
  18. Commands\Wechat\AdReport::class,
  19. Commands\Wechat\AdReportTest::class,
  20. Commands\Wechat\GdtAdReport::class,
  21. Commands\Wechat\ReportRetry::class,
  22. Commands\SmartPush\remindSign::class,
  23. Commands\Recommend\UpdateHighQualityBooks::class,
  24. Commands\SmartPush\ForceSubscribeDelayMsg::class,
  25. Commands\SmartPush\CouponExpirePush::class,
  26. Commands\BatchWechatMaterial\SyncWechatMaterialStatistics::class,
  27. //更新推送
  28. Commands\SmartPush\BookUpdatePush::class,
  29. // 微信素材批量发送
  30. Commands\BatchWechatMaterial\SendCustomWechatMaterial::class,
  31. // 删除微信素材消息
  32. Commands\ActionTrigger\BatchWechatMaterial\DelWechatMaterial::class,
  33. // 预览微信素材消息
  34. Commands\ActionTrigger\BatchWechatMaterial\PreviewWechatMaterial::class,
  35. // 同步微信素材消息
  36. Commands\ActionTrigger\BatchWechatMaterial\SyncZsWechatMaterial::class,
  37. // 测试微信素材
  38. Commands\ActionTrigger\BatchWechatMaterial\testWechatMaterial::class,
  39. // 测试微信群发
  40. Commands\ActionTrigger\BatchWechatMaterial\testWechatMaterialMsgSend::class,
  41. Commands\Wechat\RepeatReport::class,
  42. ];
  43. /**
  44. * Define the application's command schedule.
  45. *
  46. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  47. * @return void
  48. */
  49. protected function schedule(Schedule $schedule)
  50. {
  51. $schedule->command('SmartPush:KeepContinueReadV2')->cron('06 7-23 * * *');
  52. //拉取公众号后台粉丝数据
  53. $schedule->command('gzh:fansStat')->dailyAt('09:04');
  54. //拉取公众号后台昵称
  55. //$schedule->command('gzh:force_user_property')->everyFiveMinutes();
  56. //微信广告上报
  57. $schedule->command('Wechat:WeixinAdReport')->everyFiveMinutes();
  58. //微信gdt上报
  59. $schedule->command('Wechat:GdtAdReport --type=order')->everyFiveMinutes();
  60. $schedule->command('Wechat:GdtAdReport --type=register')->everyFiveMinutes();
  61. //补传
  62. $schedule->command('Wechat:RepeatReport')->everyFiveMinutes();
  63. //$schedule->command('Wechat:ReportRetry')->hourly();
  64. //未签到提醒
  65. $schedule->command('SmartPush:remindSign --start=0 --end=7000000')->dailyAt('08:01');
  66. $schedule->command('UpdateHighQualityBooks')->hourly();
  67. //优惠券过期提醒
  68. $schedule->command('SmartPush:CouponExpirePush')->hourly();
  69. //$schedule->command('SmartPush:ForceSubscribeDelayMsg')->everyFiveMinutes();
  70. $schedule->command('SmartPush:ForceSubscribeDelayMsg')->cron('*/2 * * * *');
  71. //微信批量素材
  72. $schedule->command('BatchWechatMaterial:SendCustomWechatMaterial')->everyFiveMinutes();
  73. //更新推送
  74. //$schedule->command('SmartPush:BookUpdatePush')->cron('*/6 * * * *');
  75. }
  76. }