Commit 1ee12f80 by Phạm Văn Đoan

Thêm ghi chú cho log lấy lượt nghe

parent b83cf2f7
......@@ -47,7 +47,7 @@ class CrawlerTrackImageCommand extends Command
*/
public function handle()
{
$tracks = $this->trackRepository->getTrackImageEmpty(200);
$tracks = $this->trackRepository->getTrackImageEmpty(500);
echo "\nTổng số bài hát cần lấy ảnh về: " . count($tracks);
......
......@@ -47,9 +47,6 @@ class CrawlerTrackListenCommand extends Command
*/
public function handle()
{
// Ghi log xem có gọi không
Crontjob::create(['message' => 'CrawlerTrackListenCommand is called at ' . Carbon::now()]);
$from_page = $this->argument('from_page');
$limit = $this->option('limit');
......@@ -112,6 +109,9 @@ class CrawlerTrackListenCommand extends Command
}
echo "\n Lấy số lượt nghe kết thúc.";
// Ghi log xem có gọi không
Crontjob::create(['message' => 'CrawlerTrackListenCommand is called ('.$from_page . ')']);
}
/**
......
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