作者 lyh

gx

@@ -198,7 +198,7 @@ class ATemplateLogic extends BaseLogic @@ -198,7 +198,7 @@ class ATemplateLogic extends BaseLogic
198 $bSettingModel = new Setting(); 198 $bSettingModel = new Setting();
199 $info = $bSettingModel->read(['project_id'=>$this->param['project_id']],['template_id']); 199 $info = $bSettingModel->read(['project_id'=>$this->param['project_id']],['template_id']);
200 if($info !== false){ 200 if($info !== false){
201 - $data = $this->model->read(['template_id'=>$info['template_id']],['id','name']); 201 + $data = $this->model->read(['id'=>$info['template_id']],['id','name']);
202 } 202 }
203 return $this->success($data); 203 return $this->success($data);
204 } 204 }