作者 刘锟

update

... ... @@ -98,9 +98,12 @@ class ProjectLogic extends BaseLogic
//升级项目采集完成时间
$collect_time = '';
if($info['is_upgrade'] == 1){
$collect_info = UpdateLog::where('project_id',$id)->where('api_type','blog')->first();
if($collect_info){
$collect_time = $collect_info->collect_status == 0 ? '采集中' : $collect_info->updated_at->format('Y-m-d H:i:s');
$collect_un_count = UpdateLog::where('project_id',$id)->where('collect_status',0)->count();
if($collect_un_count > 0){
$collect_time = '采集中';
}else{
$collect_info = UpdateLog::where('project_id',$id)->orderBy('updated_at','desc')->first();
$collect_time = $collect_info->updated_at->format('Y-m-d H:i:s');
}
}
$info['collect_time'] = $collect_time;
... ...