Kernel.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. namespace App\Console;
  3. use App\Console\Book\BookSpiderAfter;
  4. use App\Console\Book\SyncBooksFromZwContent;
  5. use App\Console\Book\SyncChaptersFromZwContent;
  6. use App\Console\Channel\ChannelDayStatistics;
  7. use App\Console\Channel\RegisterChannel;
  8. use App\Console\Channel\RegisterChannelUser;
  9. use App\Console\DyReport\ResetSendOrderReportDataCommand;
  10. use App\Console\DyReport\SendOrderDayStatsCommand;
  11. use App\Console\DyReport\SendOrderRechargeDayStatsCommand;
  12. use App\Console\Subscribe\BookOrderByDayCommand;
  13. use App\Console\Sync\SyncBooks;
  14. use App\Console\Sync\SyncChapters;
  15. use App\Console\Test\ChangeUserChannelId;
  16. use App\Console\Test\TestCache;
  17. use App\Console\Test\TestOpenApi;
  18. use App\Console\Test\TestSms;
  19. use Illuminate\Console\Scheduling\Schedule;
  20. use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
  21. class Kernel extends ConsoleKernel
  22. {
  23. protected $commands = [
  24. Test\TestZfbTransFundCommand::class,
  25. Test\TestCommand::class,
  26. TestCache::class,
  27. TestOpenApi::class,
  28. TestSms::class,
  29. ChangeUserChannelId::class,
  30. TikTok\AccessTokenManage::class,
  31. TikTok\ClientTokenManage::class,
  32. Book\ReadRecordStatsCommand::class,
  33. Pay\TransFundCommand::class,
  34. Pay\RefundCommand::class,
  35. SyncChaptersFromZwContent::class,
  36. SyncBooksFromZwContent::class,
  37. BookSpiderAfter::class,
  38. SyncBooks::class,
  39. SyncChapters::class,
  40. BookOrderByDayCommand::class,
  41. ResetSendOrderReportDataCommand::class,
  42. RegisterChannelUser::class,
  43. SendOrderDayStatsCommand::class,
  44. SendOrderRechargeDayStatsCommand::class,
  45. RegisterChannel::class,
  46. ChannelDayStatistics::class,
  47. ];
  48. /**
  49. * Define the application's command schedule.
  50. *
  51. * @param \Illuminate\Console\Scheduling\Schedule $schedule
  52. * @return void
  53. */
  54. protected function schedule(Schedule $schedule)
  55. {
  56. $schedule->command('channelDayStatistics')->dailyAt('00:01'); // 站点日数据统计
  57. $schedule->command('SendOrderDayStats')->dailyAt('00:01'); // 派单日数据统计
  58. $schedule->command('SendOrderRechargeDayStats')->dailyAt('00:05'); // 注册用户派单数据日统计
  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. }