正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -42,8 +42,10 @@ class CustomTemplateLogic extends BaseLogic | @@ -42,8 +42,10 @@ class CustomTemplateLogic extends BaseLogic | ||
| 42 | */ | 42 | */ |
| 43 | public function customTemplateInfo(){ | 43 | public function customTemplateInfo(){ |
| 44 | $info = $this->model->read(['id'=>$this->param['id']]); | 44 | $info = $this->model->read(['id'=>$this->param['id']]); |
| 45 | - $html = $this->getBodyHeaderFooter($info['html'],$info['html_style']); | ||
| 46 | - $info['html'] = $this->getHeadFooter($html); | 45 | + if(!empty($info['html']) && !empty($info['html_style'])){ |
| 46 | + $html = $this->getBodyHeaderFooter($info['html'],$info['html_style']); | ||
| 47 | + $info['html'] = $this->getHeadFooter($html); | ||
| 48 | + } | ||
| 47 | if($info === false){ | 49 | if($info === false){ |
| 48 | $this->fail('error'); | 50 | $this->fail('error'); |
| 49 | } | 51 | } |
-
请 注册 或 登录 后发表评论