正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -268,11 +268,11 @@ class BTemplateLogic extends BaseLogic | @@ -268,11 +268,11 @@ class BTemplateLogic extends BaseLogic | ||
| 268 | $this->param = $this->stringProcessing($this->param); | 268 | $this->param = $this->stringProcessing($this->param); |
| 269 | //保存头部信息 | 269 | //保存头部信息 |
| 270 | $this->saveCommonTemplate($this->param); | 270 | $this->saveCommonTemplate($this->param); |
| 271 | - $this->param = $this->templateSaveParam($this->param);//组装数据 | 271 | + $param = $this->templateSaveParam($this->param);//组装数据 |
| 272 | if($info === false){ | 272 | if($info === false){ |
| 273 | - $this->model->add($this->param); | 273 | + $this->model->add($param); |
| 274 | }else{ | 274 | }else{ |
| 275 | - $this->model->edit($this->param,['id'=>$info['id']]); | 275 | + $this->model->edit($param,['id'=>$info['id']]); |
| 276 | } | 276 | } |
| 277 | //写入操作模版记录 | 277 | //写入操作模版记录 |
| 278 | $this->setTemplateLog($this->param); | 278 | $this->setTemplateLog($this->param); |
| @@ -413,7 +413,7 @@ class BTemplateLogic extends BaseLogic | @@ -413,7 +413,7 @@ class BTemplateLogic extends BaseLogic | ||
| 413 | public function templateSaveParam($param){ | 413 | public function templateSaveParam($param){ |
| 414 | $param['project_id'] = $this->user['project_id']; | 414 | $param['project_id'] = $this->user['project_id']; |
| 415 | $param['html'] = $param['main_html']; | 415 | $param['html'] = $param['main_html']; |
| 416 | -// unset($param['head_html'],$param['head_css'],$param['footer_html'],$param['footer_css']); | 416 | + unset($param['head_html'],$param['head_css'],$param['footer_html'],$param['footer_css']); |
| 417 | return $this->success($param); | 417 | return $this->success($param); |
| 418 | } | 418 | } |
| 419 | 419 |
-
请 注册 或 登录 后发表评论