作者 lyh

gx

@@ -82,8 +82,10 @@ class ProjectLogic extends BaseLogic @@ -82,8 +82,10 @@ class ProjectLogic extends BaseLogic
82 82
83 public function getInfo($id) 83 public function getInfo($id)
84 { 84 {
85 - parent::setWith(['payment', 'deploy_build', 'deploy_optimize', 'online_check']); //删除缓存要添加带with的cache_key  
86 - return parent::getInfo($id); 85 +// parent::setWith(['payment', 'deploy_build', 'deploy_optimize', 'online_check']); //删除缓存要添加带with的cache_key
  86 + $info = $this->model->with('payment')->with('deploy_build')
  87 + ->with('deploy_optimize')->with('online_check')->where(['id'=>$id])->first();
  88 + return $this->success($info);
87 } 89 }
88 90
89 public function save($param){ 91 public function save($param){