作者 lyh

gx

@@ -152,7 +152,7 @@ class OnlineController extends BaseController @@ -152,7 +152,7 @@ class OnlineController extends BaseController
152 $info = $onlineCheckModel->read(['project_id'=>$this->param['project_id']]); 152 $info = $onlineCheckModel->read(['project_id'=>$this->param['project_id']]);
153 if($info === false){ 153 if($info === false){
154 $this->param['created_manage_id'] = $this->manage['id']; 154 $this->param['created_manage_id'] = $this->manage['id'];
155 - $rs = $this->model->add($this->param); 155 + $rs = $onlineCheckModel->add($this->param);
156 }else{ 156 }else{
157 $rs = $onlineCheckModel->edit($this->param,['project_id'=>$this->param['project_id']]); 157 $rs = $onlineCheckModel->edit($this->param,['project_id'=>$this->param['project_id']]);
158 } 158 }