123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <?php
- namespace App\Console;
- use Illuminate\Console\Scheduling\Schedule;
- use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
- class Kernel extends ConsoleKernel
- {
- /**
- * The Artisan commands provided by your application.
- *;
- * @var array
- */
- protected $commands = [
- Commands\Inspire::class,
- Commands\test2::class,
- Commands\Test3::class,
- Commands\SmartPush\KeepContinueRead::class,
- Commands\SmartPush\KeepContinueReadV2::class,
- Commands\SmartPush\KeepContinueReadV3::class,
- Commands\GZH\FansStat::class,
- Commands\GZH\ForceUserProperty::class,
- Commands\Wechat\AdReport::class,
- Commands\Wechat\AdReportTest::class,
- Commands\Wechat\GdtAdReport::class,
- Commands\Wechat\ReportRetry::class,
- Commands\SmartPush\remindSign::class,
- Commands\Recommend\UpdateHighQualityBooks::class,
- Commands\SmartPush\ForceSubscribeDelayMsg::class,
- Commands\SmartPush\CouponExpirePush::class,
- Commands\BatchWechatMaterial\SyncWechatMaterialStatistics::class,
- Commands\SmartPush\RfmPush::class,
- //更新推送
- Commands\SmartPush\BookUpdatePush::class,
- // 微信素材批量发送
- Commands\BatchWechatMaterial\SendCustomWechatMaterial::class,
- // 删除微信素材消息
- Commands\ActionTrigger\BatchWechatMaterial\DelWechatMaterial::class,
- // 预览微信素材消息
- Commands\ActionTrigger\BatchWechatMaterial\PreviewWechatMaterial::class,
- // 同步微信素材消息
- Commands\ActionTrigger\BatchWechatMaterial\SyncZsWechatMaterial::class,
- // 测试微信素材
- Commands\ActionTrigger\BatchWechatMaterial\testWechatMaterial::class,
- // 测试微信群发
- Commands\ActionTrigger\BatchWechatMaterial\testWechatMaterialMsgSend::class,
-
-
- ];
- /**
- * Define the application's command schedule.
- *
- * @param \Illuminate\Console\Scheduling\Schedule $schedule
- * @return void
- */
- protected function schedule(Schedule $schedule)
- {
- $schedule->command('SmartPush:KeepContinueReadV3')->cron('02 7-23 * * *');
- $schedule->command('SmartPush:KeepContinueReadV2')->cron('06 7-23 * * *');
- //拉取公众号后台粉丝数据
- $schedule->command('gzh:fansStat')->dailyAt('09:04');
- //拉取公众号后台昵称
- //$schedule->command('gzh:force_user_property')->everyFiveMinutes();
- //微信广告上报
- $schedule->command('Wechat:WeixinAdReport')->everyFiveMinutes();
- //微信gdt上报
- $schedule->command('Wechat:GdtAdReport --type=order')->everyFiveMinutes();
- $schedule->command('Wechat:GdtAdReport --type=register')->everyFiveMinutes();
- //$schedule->command('Wechat:ReportRetry')->hourly();
- //未签到提醒
- $schedule->command('SmartPush:remindSign --start=0 --end=70000000')->dailyAt('08:01');
- $schedule->command('SmartPush:remindSign --start=70000000 --end=100000000')->dailyAt('08:03');
- $schedule->command('SmartPush:remindSign --start=100000000 --end=118000000')->dailyAt('08:05');
- $schedule->command('SmartPush:remindSign --start=118000000 --end=126000000')->dailyAt('08:07');
- $schedule->command('SmartPush:remindSign --start=126000000 --end=132000000')->dailyAt('08:09');
- $schedule->command('SmartPush:remindSign --start=132000000 --end=136000000')->dailyAt('08:11');
- $schedule->command('SmartPush:remindSign --start=136000000 --end=139000000')->dailyAt('08:13');
- $schedule->command('SmartPush:remindSign --start=139000000 --end=140700000')->dailyAt('08:14');
- $schedule->command('SmartPush:remindSign --start=140700000 --end=141150000')->dailyAt('08:14');
- $schedule->command('SmartPush:remindSign --start=141150000 --end=141270000')->dailyAt('08:15');
- $schedule->command('SmartPush:remindSign --start=141270000 --end=141400000')->dailyAt('08:16');
- $schedule->command('SmartPush:remindSign --start=141400000 --end=141550000')->dailyAt('08:17');
- $schedule->command('SmartPush:remindSign --start=141550000 --end=141750000')->dailyAt('08:18');
- $schedule->command('SmartPush:remindSign --start=141550000 --end=141680000')->dailyAt('08:19');
- $schedule->command('SmartPush:remindSign --start=141680000 --end=-1')->dailyAt('08:21');
- $schedule->command('UpdateHighQualityBooks')->hourly();
- //优惠券过期提醒
- $schedule->command('SmartPush:CouponExpirePush')->hourly();
- //$schedule->command('SmartPush:ForceSubscribeDelayMsg')->everyFiveMinutes();
- $schedule->command('SmartPush:ForceSubscribeDelayMsg')->cron('*/2 * * * *');
- //微信批量素材
- $schedule->command('BatchWechatMaterial:SendCustomWechatMaterial')->everyFiveMinutes();
- //rfm 推送*******************************
- //新用户大礼包-小M值用户
- $schedule->command('SmartPush:RfmPush --type=sm --time=4')->cron('*/59 * * * *');
- //新用户大礼包-大M值用户
- $schedule->command('SmartPush:RfmPush --type=bm --time=23')->cron('*/58 * * * *');
- //新用户大礼包-全量用户
- $schedule->command('SmartPush:RfmPush --type=all --time=23')->cron('*/57 * * * *');
- //新用户大礼包-免费用户
- $schedule->command('SmartPush:RfmPush --type=free-24 --time=24')->cron('*/56 * * * *');
- //新用户大礼包-免费用户
- $schedule->command('SmartPush:RfmPush --type=free-24 --time=36')->cron('*/55 * * * *');
- //更新推送
- $schedule->command('SmartPush:BookUpdatePush')->cron('*/6 * * * *');
- }
- }
|