|
...
|
...
|
@@ -464,6 +464,9 @@ class ProjectUpdate extends Command |
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
|
|
|
|
$task->status = UpdateLog::STATUS_COM;//同步完成
|
|
|
|
if($api_type == 'post' || $api_type == 'page' || $api_type == 'news' || $api_type == 'blog'){
|
|
|
|
$task->collect_status = UpdateLog::COLLECT_STATUS_UN;
|
|
|
|
}
|
|
|
|
$task->save();
|
|
|
|
|
|
|
|
echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', task_type: ' . $api_type . ', update end ' . PHP_EOL;
|
|
...
|
...
|
@@ -480,7 +483,7 @@ class ProjectUpdate extends Command |
|
|
|
return $task_id;
|
|
|
|
}
|
|
|
|
|
|
|
|
$task_list = UpdateLog::where('project_id', 528)->where('status', UpdateLog::STATUS_UN)->orderBy('project_id', 'asc')->orderBy('sort', 'asc')->limit(8)->get();
|
|
|
|
$task_list = UpdateLog::where('project_id', 543)->where('status', UpdateLog::STATUS_UN)->orderBy('project_id', 'asc')->orderBy('sort', 'asc')->limit(8)->get();
|
|
|
|
if ($task_list->count() == 0) {
|
|
|
|
return false;
|
|
|
|
}
|
...
|
...
|
|