正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -42,11 +42,11 @@ class CustomTemplateLogic extends BaseLogic | @@ -42,11 +42,11 @@ 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); | ||
| 47 | if($info === false){ | 45 | if($info === false){ |
| 48 | - $this->fail('error'); | 46 | + $this->fail('当前数据不存在'); |
| 49 | } | 47 | } |
| 48 | + $html = $this->getBodyHeaderFooter($info['html'],$info['html_style']); | ||
| 49 | + $info['html'] = $this->getHeadFooter($html); | ||
| 50 | return $this->success($info); | 50 | return $this->success($info); |
| 51 | } | 51 | } |
| 52 | 52 |
-
请 注册 或 登录 后发表评论