作者 lyh

gx

@@ -87,14 +87,14 @@ class ProjectLogic extends BaseLogic @@ -87,14 +87,14 @@ class ProjectLogic extends BaseLogic
87 $info['deploy_build']['other_project']= json_decode($info['deploy_build']['other_project']); 87 $info['deploy_build']['other_project']= json_decode($info['deploy_build']['other_project']);
88 } 88 }
89 //升级项目采集完成时间 89 //升级项目采集完成时间
90 -// $collect_time = '';  
91 -// if($info['is_upgrade'] == 1){  
92 -// $collect_info = UpdateLog::where('project_id',$id)->where('api_type','blog')->first();  
93 -// if($collect_info){  
94 -// $collect_time = $collect_info->collect_status == 0 ? '采集中' : $collect_info->updated_at->format('Y-m-d H:i:s');  
95 -// }  
96 -// }  
97 -// $info['collect_time'] = $collect_time; 90 + $collect_time = '';
  91 + if($info['is_upgrade'] == 1){
  92 + $collect_info = UpdateLog::where('project_id',$id)->where('api_type','blog')->first();
  93 + if($collect_info){
  94 + $collect_time = $collect_info->collect_status == 0 ? '采集中' : $collect_info->updated_at->format('Y-m-d H:i:s');
  95 + }
  96 + }
  97 + $info['collect_time'] = $collect_time;
98 return $this->success($info); 98 return $this->success($info);
99 } 99 }
100 100