作者 lyh

gx

@@ -114,10 +114,12 @@ class BTemplateLogic extends BaseLogic @@ -114,10 +114,12 @@ class BTemplateLogic extends BaseLogic
114 $this->StringProcessing(); 114 $this->StringProcessing();
115 $this->param['project_id'] = $this->user['project_id']; 115 $this->param['project_id'] = $this->user['project_id'];
116 //获取当前模版详情 116 //获取当前模版详情
117 - $template_info = $this->model->read(['template_id'=>$this->param['template_id']]); 117 + //获取模板详情
  118 + $ATemplateModel = new Template();
  119 + $TemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]);
118 //同步数据 120 //同步数据
119 - $this->param['name'] = $template_info['name'];  
120 - $this->param['image'] = $template_info['image']; 121 + $this->param['name'] = $TemplateInfo['name'];
  122 + $this->param['image'] = $TemplateInfo['image'];
121 $rs = $this->model->add($this->param); 123 $rs = $this->model->add($this->param);
122 }else{ 124 }else{
123 $this->StringProcessing(); 125 $this->StringProcessing();