正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -170,7 +170,11 @@ class CustomTemplateLogic extends BaseLogic | @@ -170,7 +170,11 @@ class CustomTemplateLogic extends BaseLogic | ||
| 170 | * @method :post | 170 | * @method :post |
| 171 | * @time :2023/7/21 18:08 | 171 | * @time :2023/7/21 18:08 |
| 172 | */ | 172 | */ |
| 173 | - public function getBodyHeaderFooter($preg_html = "<main></main>",$html_style = "<style id='globalsojs-styles'></style>"){ | 173 | + public function getBodyHeaderFooter($preg_html,$html_style){ |
| 174 | + if(!empty($preg_html)){ | ||
| 175 | + $preg_html = "<main></main>"; | ||
| 176 | + $html_style = "<style id='globalsojs-styles'></style>"; | ||
| 177 | + } | ||
| 174 | //获取设置的默认模版 | 178 | //获取设置的默认模版 |
| 175 | $bSettingModel = new Setting(); | 179 | $bSettingModel = new Setting(); |
| 176 | $info = $bSettingModel->read(['project_id'=>$this->user['project_id']]); | 180 | $info = $bSettingModel->read(['project_id'=>$this->user['project_id']]); |
-
请 注册 或 登录 后发表评论