作者 刘锟

update

... ... @@ -40,15 +40,14 @@ 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 = '543_1';
$task_id = $this->get_task();
if ($task_id === false) {
//所有项目采集完成
sleep(60);
... ...
... ... @@ -322,8 +322,6 @@ class ProjectUpdate extends Command
echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', error: ' . $e->getMessage() . PHP_EOL;
continue;
}
}else{
$model->edit(['intro'=>$item['short_description'] ?? ''],['id'=>$product['id']]);
}
}
}
... ...