|
...
|
...
|
@@ -92,8 +92,6 @@ class HtmlCollect extends Command |
|
|
|
try {
|
|
|
|
$html = curl_c('https://' . $collect_info->domain . $collect_info->route, false);
|
|
|
|
if (strlen($html) < 4) {
|
|
|
|
$collect_info->status = CollectTask::STATUS_FAIL;
|
|
|
|
$collect_info->save();
|
|
|
|
|
|
|
|
if ($html == 404) {
|
|
|
|
//原数据页面404,需要将6.0数据存入草稿箱
|
|
...
|
...
|
@@ -124,6 +122,8 @@ class HtmlCollect extends Command |
|
|
|
$status_draft = BCustomTemplate::STATUS_DRAFT;
|
|
|
|
}
|
|
|
|
$model->edit(['status' => $status_draft], ['project_id' => $project_id, 'id' => $collect_info->source_id, 'six_read' => 1]);
|
|
|
|
|
|
|
|
CollectTask::where('source', $collect_info->source)->where('source_id', $collect_info->source_id)->delete();
|
|
|
|
}
|
|
|
|
|
|
|
|
echo 'date:' . date('Y-m-d H:i:s') . ', project_id: ' . $project_id . ', collect_id: ' . $collect_id . ', error: ' . $html . PHP_EOL;
|
...
|
...
|
|