| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- namespace App\Console;
- use App\Console\Commands\DbQueue;
- use App\Console\Commands\OnlineReport;
- use App\Console\Commands\DecStock;
- use App\Console\Commands\ExemptReview;
- use App\Console\Commands\Extension;
- use App\Console\Commands\PayOrder;
- use App\Console\Commands\RecordPlatformData;
- use App\Console\Commands\RecordServerGameCount;
- use App\Console\Commands\RecordServerGameCountYesterday;
- use App\Console\Commands\RecordThreeGameYesterday;
- use App\Console\Commands\RecordUserScoreChangeStatistics;
- 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 = [
- ExemptReview::class,
- PayOrder::class,
- Extension::class,
- RecordPlatformData::class,
- RecordServerGameCount::class,
- RecordServerGameCountYesterday::class,
- RecordUserScoreChangeStatistics::class,
- DecStock::class,
- OnlineReport::class,
- DbQueue::class,
- RecordThreeGameYesterday::class
- ];
- /**
- * Define the application's command schedule.
- *
- * @param \Illuminate\Console\Scheduling\Schedule $schedule
- * @return void
- */
- protected function schedule(Schedule $schedule)
- {
- // $schedule->command('db_queue')->everyMinute()->description('批量处理redis队列任务');
- $schedule->command('exempt_review')->everyMinute()->description('免审提现');
- $schedule->command('record_server_game_count')->cron('*/15 * * * * ')->description('按天统计游戏人数');
- $schedule->command('online_max')->cron('*/8 * * * * ')->description('最高在线人数统计');
- $schedule->command('record_server_game_count_yesterday')->cron('05 0 * * * ')->description('按天统计游戏人数--今日执行昨日');
- $schedule->command('RecordPlatformData')->cron('10 0 * * * ')->description('数据统计');
- $schedule->command('RecordUserScoreChangeStatistics')->cron('03 0 * * * ')->description('用户金额变化明细按天按用户汇总');
- $schedule->command('online_report')->everyMinute()->description('每分钟统计曲线');
- $schedule->command('record_three_game_yesterday')->cron('05 0 * * * ')->description('按天统计游戏人数--今日执行昨日');
- }
- /**
- * Register the commands for the application.
- *
- * @return void
- */
- protected function commands()
- {
- $this->load(__DIR__.'/Commands');
- // require base_path('routes/console.php');
- }
- }
|