作者 lyh

gx

@@ -109,9 +109,7 @@ class ProjectLogic extends BaseLogic @@ -109,9 +109,7 @@ class ProjectLogic extends BaseLogic
109 * @time :2023/7/28 17:11 109 * @time :2023/7/28 17:11
110 */ 110 */
111 public function getProjectInfo($id){ 111 public function getProjectInfo($id){
112 - $info = Common::get_user_cache($this->model,$id);  
113 - var_dump($this->model->getTable());  
114 - die(); 112 + $info = Common::get_user_cache($this->model->getTable(),$id);
115 if(empty($info)){ 113 if(empty($info)){
116 $info = $this->model->with('payment')->with('deploy_build') 114 $info = $this->model->with('payment')->with('deploy_build')
117 ->with('deploy_optimize')->with('online_check') 115 ->with('deploy_optimize')->with('online_check')
@@ -123,7 +121,7 @@ class ProjectLogic extends BaseLogic @@ -123,7 +121,7 @@ class ProjectLogic extends BaseLogic
123 if($info['extend_type'] != 0){ 121 if($info['extend_type'] != 0){
124 $info['type'] = $info['extend_type']; 122 $info['type'] = $info['extend_type'];
125 } 123 }
126 - Common::set_user_cache($info,$this->model,$id); 124 + Common::set_user_cache($info,$this->model->getTable(),$id);
127 } 125 }
128 return $this->success($info); 126 return $this->success($info);
129 } 127 }
@@ -144,7 +142,7 @@ class ProjectLogic extends BaseLogic @@ -144,7 +142,7 @@ class ProjectLogic extends BaseLogic
144 } 142 }
145 $res = parent::save($param); 143 $res = parent::save($param);
146 $param['id'] = $res['id']; 144 $param['id'] = $res['id'];
147 - Common::del_user_cache($this->model,$param['id']); 145 + Common::del_user_cache($this->model->getTable(),$param['id']);
148 $this->savePayment($param); 146 $this->savePayment($param);
149 $this->saveDeployBuild($param); 147 $this->saveDeployBuild($param);
150 $this->saveDeployOptimize($param); 148 $this->saveDeployOptimize($param);