正在显示
1 个修改的文件
包含
8 行增加
和
8 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论