作者 lyh

gx

... ... @@ -87,14 +87,14 @@ class ProjectLogic extends BaseLogic
$info['deploy_build']['other_project']= json_decode($info['deploy_build']['other_project']);
}
//升级项目采集完成时间
// $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');
// }
// }
// $info['collect_time'] = $collect_time;
$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');
}
}
$info['collect_time'] = $collect_time;
return $this->success($info);
}
... ...