Commit 42d0c148 by Vladislav

#19458 Обновление справочника городов.

1 parent e9bf4b7d
<?php
namespace App\Console\Commands;
use App\Service\API\API;
use App\Service\Direct\CheckDictionaries;
use App\Service\Direct\GetCampaigns;
use App\Service\Requests\Direct\CheckDictionariesChange;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Bus;
class CallCheckDictionariesChange extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'call-check-dictionaries-change';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Запрос остатка баллов';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
CheckDictionariesChange::getInstance(API::YANDEX)->call();
}
}
......@@ -2,6 +2,7 @@
namespace App\Console;
use App\Console\Commands\CallCheckDictionariesChange;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
......@@ -25,6 +26,7 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
$schedule->command('refreshLimits')->hourly();
$schedule->command(CallCheckDictionariesChange::class)->saturdays()->at('05:00');
}
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!