Kernel.php 3.0 KB

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