Kernel.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. ];
  42. /**
  43. * Define the application's command schedule.
  44. *
  45. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  46. * @return void
  47. */
  48. protected function schedule(Schedule $schedule)
  49. {
  50. $schedule->command('SmartPush:KeepContinueReadV2')->cron('06 7-23 * * *');
  51. //拉取公众号后台粉丝数据
  52. $schedule->command('gzh:fansStat')->dailyAt('09:04');
  53. //拉取公众号后台昵称
  54. //$schedule->command('gzh:force_user_property')->everyFiveMinutes();
  55. //微信广告上报
  56. $schedule->command('Wechat:WeixinAdReport')->everyFiveMinutes();
  57. //微信gdt上报
  58. $schedule->command('Wechat:GdtAdReport --type=order')->everyFiveMinutes();
  59. $schedule->command('Wechat:GdtAdReport --type=register')->everyFiveMinutes();
  60. //$schedule->command('Wechat:ReportRetry')->hourly();
  61. //未签到提醒
  62. $schedule->command('SmartPush:remindSign --start=0 --end=7000000')->dailyAt('08:01');
  63. $schedule->command('UpdateHighQualityBooks')->hourly();
  64. //优惠券过期提醒
  65. $schedule->command('SmartPush:CouponExpirePush')->hourly();
  66. //$schedule->command('SmartPush:ForceSubscribeDelayMsg')->everyFiveMinutes();
  67. $schedule->command('SmartPush:ForceSubscribeDelayMsg')->cron('*/2 * * * *');
  68. //微信批量素材
  69. $schedule->command('BatchWechatMaterial:SendCustomWechatMaterial')->everyFiveMinutes();
  70. //更新推送
  71. //$schedule->command('SmartPush:BookUpdatePush')->cron('*/6 * * * *');
  72. }
  73. }