1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace App\Console;
- use App\Console\Commands\Message;
- use Illuminate\Console\Scheduling\Schedule;
- use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
- use Illuminate\Support\Facades\Log;
- class Kernel extends ConsoleKernel
- {
-
- protected $commands = [
-
- Message::class,
- ];
-
- protected function schedule(Schedule $schedule)
- {
- if (config('app.env') == 'wall') {
- $schedule->command('social:sync 2')->everyFiveMinutes();
- } else {
- $schedule->command('beg:master email')->everyTenMinutes();
- $schedule->command('beg:master report')->twiceDaily(1, 13);
- $schedule->command('master:meter')->dailyAt('02:00');
- $schedule->command('plan:week')->dailyAt('22:00');
- $schedule->command('url:check')->dailyAt('23:00');
- $schedule->command('num:count')->dailyAt('21:00');
- $schedule->command('article:monitor')->dailyAt('8:00');
- $schedule->command('message:day')->dailyAt('09:00');
- $schedule->command('message:inquiry')->everyMinute();
- $schedule->command('link:link')->dailyAt('08:00');
- $schedule->command('sync_pictures:template_library')->dailyAt('15:50');
- $schedule->command('sync:keyword_expansion')->monthlyOn(1, '01:00');
- }
- }
-
- protected function commands()
- {
- $this->load(__DIR__ . '/Commands');
- require base_path('routes/console.php');
- }
- }
|