Commit ffd4b302 by Phạm Văn Đoan

đổi tên class

parent 09338dae
<?php <?php
namespace App\Console\Commands\Zing; namespace App\Console\Commands;
use App\Helpers\Constants; use App\Helpers\Constants;
use App\Models\Crontjob; use App\Models\Crontjob;
...@@ -9,14 +9,14 @@ use App\Repositories\TrackRepository; ...@@ -9,14 +9,14 @@ use App\Repositories\TrackRepository;
use Carbon\Carbon; use Carbon\Carbon;
use Illuminate\Console\Command; use Illuminate\Console\Command;
class ZingCrawlerTrackImageCommand extends Command class CrawlerTrackImageCommand extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
* *
* @var string * @var string
*/ */
protected $signature = 'zing:get-track-image'; protected $signature = 'crawler:get-track-image';
/** /**
* The console command description. * The console command description.
......
...@@ -6,7 +6,7 @@ use App\Console\Commands\CrontjobCommand; ...@@ -6,7 +6,7 @@ use App\Console\Commands\CrontjobCommand;
use App\Console\Commands\Nct\NctCrawlerTrackCommand; use App\Console\Commands\Nct\NctCrawlerTrackCommand;
use App\Console\Commands\Zing\ZingCrawlerNewRealeaseCommand; use App\Console\Commands\Zing\ZingCrawlerNewRealeaseCommand;
use App\Console\Commands\Zing\ZingCrawlerTrackCommand; use App\Console\Commands\Zing\ZingCrawlerTrackCommand;
use App\Console\Commands\Zing\ZingCrawlerTrackImageCommand; use App\Console\Commands\CrawlerTrackImageCommand;
use Illuminate\Console\Scheduling\Schedule; use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
...@@ -21,7 +21,7 @@ class Kernel extends ConsoleKernel ...@@ -21,7 +21,7 @@ class Kernel extends ConsoleKernel
CrontjobCommand::class, CrontjobCommand::class,
ZingCrawlerTrackCommand::class, ZingCrawlerTrackCommand::class,
ZingCrawlerNewRealeaseCommand::class, ZingCrawlerNewRealeaseCommand::class,
ZingCrawlerTrackImageCommand::class, CrawlerTrackImageCommand::class,
NctCrawlerTrackCommand::class, NctCrawlerTrackCommand::class,
...@@ -42,7 +42,7 @@ class Kernel extends ConsoleKernel ...@@ -42,7 +42,7 @@ class Kernel extends ConsoleKernel
$schedule->command('zing:get-track')->everyThirtyMinutes(); $schedule->command('zing:get-track')->everyThirtyMinutes();
$schedule->command('zing:get-new-release-track')->hourlyAt(10); $schedule->command('zing:get-new-release-track')->hourlyAt(10);
$schedule->command('zing:get-track-image')->hourlyAt(15); $schedule->command('crawler:get-track-image')->hourlyAt(15);
$schedule->command('queue:work --once --timeout=120')->everyMinute()->withoutOverlapping(); $schedule->command('queue:work --once --timeout=120')->everyMinute()->withoutOverlapping();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment