正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
| @@ -113,6 +113,11 @@ class BTemplateLogic extends BaseLogic | @@ -113,6 +113,11 @@ class BTemplateLogic extends BaseLogic | ||
| 113 | //字符串截取 | 113 | //字符串截取 |
| 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 | + //获取当前模版详情 | ||
| 117 | + $template_info = $this->model->read(['template_id'=>$this->param['template_id']]); | ||
| 118 | + //同步数据 | ||
| 119 | + $this->param['name'] = $template_info['name']; | ||
| 120 | + $this->param['image'] = $template_info['image']; | ||
| 116 | $rs = $this->model->add($this->param); | 121 | $rs = $this->model->add($this->param); |
| 117 | }else{ | 122 | }else{ |
| 118 | $this->StringProcessing(); | 123 | $this->StringProcessing(); |
-
请 注册 或 登录 后发表评论