正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -122,8 +122,9 @@ class CustomTemplateLogic extends BaseLogic | @@ -122,8 +122,9 @@ class CustomTemplateLogic extends BaseLogic | ||
| 122 | 'project_id'=>$this->user['project_id'], | 122 | 'project_id'=>$this->user['project_id'], |
| 123 | 'source'=>1//首页 | 123 | 'source'=>1//首页 |
| 124 | ]); | 124 | ]); |
| 125 | - var_dump($TemplateInfo); | ||
| 126 | - die(); | 125 | + if($TemplateInfo === false){ |
| 126 | + $this->fail('请先装修首页'); | ||
| 127 | + } | ||
| 127 | if(empty($preg_html)){ | 128 | if(empty($preg_html)){ |
| 128 | $preg_html = "<main></main>"; | 129 | $preg_html = "<main></main>"; |
| 129 | $html = preg_replace('/<style id="globalsojs-styles">(.*?)<\/style>/s', "<style id='globalsojs-styles'></style>", $TemplateInfo['html']); | 130 | $html = preg_replace('/<style id="globalsojs-styles">(.*?)<\/style>/s', "<style id='globalsojs-styles'></style>", $TemplateInfo['html']); |
-
请 注册 或 登录 后发表评论