作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !144
@@ -464,6 +464,9 @@ class ProjectUpdate extends Command @@ -464,6 +464,9 @@ class ProjectUpdate extends Command
464 DB::disconnect('custom_mysql'); 464 DB::disconnect('custom_mysql');
465 465
466 $task->status = UpdateLog::STATUS_COM;//同步完成 466 $task->status = UpdateLog::STATUS_COM;//同步完成
  467 + if($api_type == 'post' || $api_type == 'page' || $api_type == 'news' || $api_type == 'blog'){
  468 + $task->collect_status = UpdateLog::COLLECT_STATUS_UN;
  469 + }
467 $task->save(); 470 $task->save();
468 471
469 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', task_type: ' . $api_type . ', update end ' . PHP_EOL; 472 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 @@ -480,7 +483,7 @@ class ProjectUpdate extends Command
480 return $task_id; 483 return $task_id;
481 } 484 }
482 485
483 - $task_list = UpdateLog::where('project_id', 528)->where('status', UpdateLog::STATUS_UN)->orderBy('project_id', 'asc')->orderBy('sort', 'asc')->limit(8)->get(); 486 + $task_list = UpdateLog::where('project_id', 543)->where('status', UpdateLog::STATUS_UN)->orderBy('project_id', 'asc')->orderBy('sort', 'asc')->limit(8)->get();
484 if ($task_list->count() == 0) { 487 if ($task_list->count() == 0) {
485 return false; 488 return false;
486 } 489 }