|
...
|
...
|
@@ -100,15 +100,15 @@ class ProjectLogic extends BaseLogic |
|
|
|
public function getProjectInfo($id){
|
|
|
|
$info = $this->model->with('payment')->with('deploy_build')
|
|
|
|
->with('deploy_optimize')->with('online_check')->where(['id'=>$id])->first();
|
|
|
|
// if(isset($info['online_check']['created_manage_id']) && !empty($info['online_check']['created_manage_id'])){
|
|
|
|
// $info['online_check']['name'] = ManageLogic::getCacheName($info['online_check']['created_manage_id']);
|
|
|
|
// }
|
|
|
|
// if(isset($info['serve_id']) && !empty($info['serve_id'])){
|
|
|
|
// $info['serve_id_name'] = (new ServerConfig())->read(['id'=>$info['serve_id']])['title'];
|
|
|
|
// }
|
|
|
|
// if(isset($info['mysql_id']) && !empty($info['mysql_id'])){
|
|
|
|
// $info['mysql_id_name'] = (new ServerConfig())->read(['id'=>$info['mysql_id']])['title'];
|
|
|
|
// }
|
|
|
|
if(isset($info['online_check']['created_manage_id']) && !empty($info['online_check']['created_manage_id'])){
|
|
|
|
$info['online_check']['name'] = ManageLogic::getCacheName($info['online_check']['created_manage_id']);
|
|
|
|
}
|
|
|
|
if(isset($info['serve_id']) && !empty($info['serve_id'])){
|
|
|
|
$info['serve_id_name'] = (new ServerConfig())->read(['id'=>$info['serve_id']])['title'];
|
|
|
|
}
|
|
|
|
if(isset($info['mysql_id']) && !empty($info['mysql_id'])){
|
|
|
|
$info['mysql_id_name'] = (new ServerConfig())->read(['id'=>$info['mysql_id']])['title'];
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
public function save($param){
|
...
|
...
|
|