|
...
|
...
|
@@ -109,13 +109,17 @@ class ProjectLogic extends BaseLogic |
|
|
|
* @time :2023/7/28 17:11
|
|
|
|
*/
|
|
|
|
public function getProjectInfo($id){
|
|
|
|
$info = $this->model->with('payment')->with('deploy_build')
|
|
|
|
->with('deploy_optimize')->with('online_check')
|
|
|
|
->with('project_after')->where(['id'=>$id])->first();
|
|
|
|
$info['online_check']['name'] = (new Manage())->read(['id'=>$info['online_check']['created_manage_id']])['name'] ?? '';
|
|
|
|
$info['deploy_optimize']['minor_keywords'] = json_decode($info['deploy_optimize']['minor_keywords']) ?? '';
|
|
|
|
if($info['extend_type'] != 0){
|
|
|
|
$info['type'] = $info['extend_type'];
|
|
|
|
$info = Common::get_user_cache($this->model,$id);
|
|
|
|
if(empty($info)){
|
|
|
|
$info = $this->model->with('payment')->with('deploy_build')
|
|
|
|
->with('deploy_optimize')->with('online_check')
|
|
|
|
->with('project_after')->where(['id'=>$id])->first();
|
|
|
|
$info['online_check']['name'] = (new Manage())->read(['id'=>$info['online_check']['created_manage_id']])['name'] ?? '';
|
|
|
|
$info['deploy_optimize']['minor_keywords'] = json_decode($info['deploy_optimize']['minor_keywords']) ?? '';
|
|
|
|
if($info['extend_type'] != 0){
|
|
|
|
$info['type'] = $info['extend_type'];
|
|
|
|
}
|
|
|
|
Common::set_user_cache($info,$this->model,$id);
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
...
|
...
|
@@ -140,6 +144,7 @@ class ProjectLogic extends BaseLogic |
|
|
|
$this->saveDeployBuild($param);
|
|
|
|
$this->saveDeployOptimize($param);
|
|
|
|
$this->saveAfter($param);
|
|
|
|
Common::del_user_cache($this->model,$res['id']);
|
|
|
|
DB::commit();
|
|
|
|
}catch (\Exception $e){
|
|
|
|
DB::rollBack();
|
...
|
...
|
|