|
...
|
...
|
@@ -109,9 +109,7 @@ class ProjectLogic extends BaseLogic |
|
|
|
* @time :2023/7/28 17:11
|
|
|
|
*/
|
|
|
|
public function getProjectInfo($id){
|
|
|
|
$info = Common::get_user_cache($this->model,$id);
|
|
|
|
var_dump($this->model->getTable());
|
|
|
|
die();
|
|
|
|
$info = Common::get_user_cache($this->model->getTable(),$id);
|
|
|
|
if(empty($info)){
|
|
|
|
$info = $this->model->with('payment')->with('deploy_build')
|
|
|
|
->with('deploy_optimize')->with('online_check')
|
|
...
|
...
|
@@ -123,7 +121,7 @@ class ProjectLogic extends BaseLogic |
|
|
|
if($info['extend_type'] != 0){
|
|
|
|
$info['type'] = $info['extend_type'];
|
|
|
|
}
|
|
|
|
Common::set_user_cache($info,$this->model,$id);
|
|
|
|
Common::set_user_cache($info,$this->model->getTable(),$id);
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
...
|
...
|
@@ -144,7 +142,7 @@ class ProjectLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$res = parent::save($param);
|
|
|
|
$param['id'] = $res['id'];
|
|
|
|
Common::del_user_cache($this->model,$param['id']);
|
|
|
|
Common::del_user_cache($this->model->getTable(),$param['id']);
|
|
|
|
$this->savePayment($param);
|
|
|
|
$this->saveDeployBuild($param);
|
|
|
|
$this->saveDeployOptimize($param);
|
...
|
...
|
|