Kernel.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace App\Console;
  3. use App\Console\Commands\DbQueue;
  4. use App\Console\Commands\OnlineReport;
  5. use App\Console\Commands\DecStock;
  6. use App\Console\Commands\ExemptReview;
  7. use App\Console\Commands\Extension;
  8. use App\Console\Commands\PayOrder;
  9. use App\Console\Commands\RecordPlatformData;
  10. use App\Console\Commands\RecordServerGameCount;
  11. use App\Console\Commands\RecordServerGameCountYesterday;
  12. use App\Console\Commands\RecordThreeGameYesterday;
  13. use App\Console\Commands\RecordUserScoreChangeStatistics;
  14. use App\Console\Commands\SuperballUpdatePoolAndStats;
  15. use Illuminate\Console\Scheduling\Schedule;
  16. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  17. class Kernel extends ConsoleKernel
  18. {
  19. /**
  20. * The Artisan commands provided by your application.
  21. *
  22. * @var array
  23. */
  24. protected $commands = [
  25. ExemptReview::class,
  26. PayOrder::class,
  27. Extension::class,
  28. RecordPlatformData::class,
  29. RecordServerGameCount::class,
  30. RecordServerGameCountYesterday::class,
  31. RecordUserScoreChangeStatistics::class,
  32. DecStock::class,
  33. OnlineReport::class,
  34. DbQueue::class,
  35. RecordThreeGameYesterday::class,
  36. SuperballUpdatePoolAndStats::class,
  37. ];
  38. /**
  39. * Define the application's command schedule.
  40. *
  41. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  42. * @return void
  43. */
  44. protected function schedule(Schedule $schedule)
  45. {
  46. // $schedule->command('db_queue')->everyMinute()->description('批量处理redis队列任务');
  47. $schedule->command('exempt_review')->everyMinute()->description('免审提现');
  48. $schedule->command('record_server_game_count')->cron('*/15 * * * * ')->description('按天统计游戏人数');
  49. $schedule->command('online_max')->cron('*/8 * * * * ')->description('最高在线人数统计');
  50. $schedule->command('record_server_game_count_yesterday')->cron('05 0 * * * ')->description('按天统计游戏人数--今日执行昨日');
  51. $schedule->command('RecordPlatformData')->cron('10 0 * * * ')->description('数据统计');
  52. $schedule->command('RecordUserScoreChangeStatistics')->cron('03 0 * * * ')->description('用户金额变化明细按天按用户汇总');
  53. $schedule->command('superball:update-pool-stats')->everyMinute()->description('Superball 每分钟刷新奖池及展示统计');
  54. $schedule->command('online_report')->everyMinute()->description('每分钟统计曲线');
  55. // $schedule->command('record_three_game_yesterday')->cron('05 0 * * * ')->description('按天统计游戏人数--今日执行昨日');
  56. }
  57. /**
  58. * Register the commands for the application.
  59. *
  60. * @return void
  61. */
  62. protected function commands()
  63. {
  64. $this->load(__DIR__.'/Commands');
  65. // require base_path('routes/console.php');
  66. }
  67. }