diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index de764786..3ad8692e 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -27,55 +27,18 @@ class Kernel extends ConsoleKernel */ protected function schedule(Schedule $schedule) { - $schedule->command('command:curlVTCommand') - ->dailyAt('09:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlvt.log'); $schedule->command('command:curlYdOrderListCommand') - ->dailyAt('09:00') + ->cron('0 9-18/3 * * *') ->withoutOverlapping() ->appendOutputTo (storage_path().'/logs/curlyd.log'); $schedule->command('command:curlVTCommand') - ->dailyAt('11:00') + ->cron('30 9-18/3 * * *') ->withoutOverlapping() ->appendOutputTo (storage_path().'/logs/curlvt.log'); - $schedule->command('command:curlYdOrderListCommand') - ->dailyAt('11:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlyd.log'); - $schedule->command('command:curlVTCommand') - ->dailyAt('14:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlvt.log'); - - $schedule->command('command:curlYdOrderListCommand') - ->dailyAt('14:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlyd.log'); - - $schedule->command('command:curlVTCommand') - ->dailyAt('16:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlvt.log'); - - $schedule->command('command:curlYdOrderListCommand') - ->dailyAt('16:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlyd.log'); - - $schedule->command('command:curlVTCommand') - ->dailyAt('18:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlvt.log'); - - $schedule->command('command:curlYdOrderListCommand') - ->dailyAt('18:00') - ->withoutOverlapping() - ->appendOutputTo (storage_path().'/logs/curlyd.log'); } /**