作者 lyh

gx

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