1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- namespace App\Console;
- use App\Console\Book\BookSpiderAfter;
- use App\Console\Book\SyncBooksFromZwContent;
- use App\Console\Book\SyncChaptersFromZwContent;
- use App\Console\Channel\ChannelDayStatistics;
- use App\Console\Channel\RegisterChannel;
- use App\Console\Channel\RegisterChannelUser;
- use App\Console\DyReport\ResetSendOrderReportDataCommand;
- use App\Console\DyReport\SendOrderDayStatsCommand;
- use App\Console\DyReport\SendOrderRechargeDayStatsCommand;
- use App\Console\Subscribe\BookOrderByDayCommand;
- use App\Console\Sync\SyncBooks;
- use App\Console\Sync\SyncChapters;
- use App\Console\Test\ChangeUserChannelId;
- use App\Console\Test\TestCache;
- use App\Console\Test\TestOpenApi;
- use App\Console\Test\TestSms;
- use Illuminate\Console\Scheduling\Schedule;
- use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
- class Kernel extends ConsoleKernel
- {
- protected $commands = [
- Test\TestZfbTransFundCommand::class,
- Test\TestCommand::class,
- TestCache::class,
- TestOpenApi::class,
- TestSms::class,
- ChangeUserChannelId::class,
- TikTok\AccessTokenManage::class,
- TikTok\ClientTokenManage::class,
- Book\ReadRecordStatsCommand::class,
- Pay\TransFundCommand::class,
- Pay\RefundCommand::class,
- SyncChaptersFromZwContent::class,
- SyncBooksFromZwContent::class,
- BookSpiderAfter::class,
- SyncBooks::class,
- SyncChapters::class,
- BookOrderByDayCommand::class,
- ResetSendOrderReportDataCommand::class,
- RegisterChannelUser::class,
- SendOrderDayStatsCommand::class,
- SendOrderRechargeDayStatsCommand::class,
- RegisterChannel::class,
- ChannelDayStatistics::class,
- ];
- /**
- * Define the application's command schedule.
- *
- * @param \Illuminate\Console\Scheduling\Schedule $schedule
- * @return void
- */
- protected function schedule(Schedule $schedule)
- {
- $schedule->command('channelDayStatistics')->dailyAt('00:01'); // 站点日数据统计
- $schedule->command('SendOrderDayStats')->dailyAt('00:01'); // 派单日数据统计
- $schedule->command('SendOrderRechargeDayStats')->dailyAt('00:05'); // 注册用户派单数据日统计
- }
- /**
- * Register the commands for the application.
- *
- * @return void
- */
- protected function commands()
- {
- $this->load(__DIR__ . '/Commands');
- require base_path('routes/console.php');
- }
- }
|