作者 lyh

gx

... ... @@ -109,13 +109,11 @@ class ProjectLogic extends BaseLogic
* @time :2023/7/28 17:11
*/
public function getProjectInfo($id){
$info = Common::get_user_cache($this->model,$id);
// $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()->toArray();
var_dump($info);
die();
if(!empty($info['online_check']['created_manage_id'])){
$info['online_check']['name'] = (new Manage())->read(['id'=>$info['online_check']['created_manage_id']])['name'] ?? '';
}
... ... @@ -144,11 +142,11 @@ class ProjectLogic extends BaseLogic
}
$res = parent::save($param);
$param['id'] = $res['id'];
Common::del_user_cache($this->model,$param['id']);
$this->savePayment($param);
$this->saveDeployBuild($param);
$this->saveDeployOptimize($param);
$this->saveAfter($param);
Common::del_user_cache($this->model,$res['id']);
DB::commit();
}catch (\Exception $e){
DB::rollBack();
... ...