|
...
|
...
|
@@ -39,14 +39,15 @@ class HtmlCollect extends Command |
|
|
|
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
while (true) {
|
|
|
|
// while (true) {
|
|
|
|
$this->start_collect();
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function start_collect()
|
|
|
|
{
|
|
|
|
$task_id = $this->get_task();
|
|
|
|
// $task_id = $this->get_task();
|
|
|
|
$task_id = '717_57995';
|
|
|
|
if ($task_id === false) {
|
|
|
|
//所有项目采集完成
|
|
|
|
sleep(60);
|
|
...
|
...
|
@@ -365,7 +366,7 @@ class HtmlCollect extends Command |
|
|
|
$cos = config('filesystems.disks.cos');
|
|
|
|
$cosCdn = $cos['cdn'];
|
|
|
|
|
|
|
|
if ($vjs_down_host == $cosCdn) {
|
|
|
|
if ($vjs_down_host && $vjs_down_host == $cosCdn) {
|
|
|
|
//过滤已经下载的
|
|
|
|
continue;
|
|
|
|
}
|
...
|
...
|
|