12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace App\Console;
- use Illuminate\Console\Scheduling\Schedule;
- use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
- class Kernel extends ConsoleKernel
- {
-
- protected function schedule(Schedule $schedule)
- {
- $schedule->command('Callback:JuliangAccountRateConfigRefresh')->everyMinute();
-
- $schedule->command('Jiesuan:CompanyChargeDayJiesuan', [
- '--date' => date('Y-m-d', strtotime('yesterday'))
- ])->dailyAt('01:00');
-
- $schedule->command('Statistic:CompanyDayCharge')->dailyAt('02:00');
- $schedule->command('Statistic:CompanyMonthCharge')->monthlyOn(1, '04:00');
- $schedule->command('Statistic:PromotionDayCharge')->dailyAt('01:00');
- $schedule->command('Statistic:OptimizerMonthCharge')->monthlyOn(1,'03:00');
- }
-
- protected function commands()
- {
- $this->load(__DIR__.'/Commands');
- require base_path('routes/console.php');
- }
- }
|