正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
| @@ -171,7 +171,7 @@ class CustomTemplateLogic extends BaseLogic | @@ -171,7 +171,7 @@ class CustomTemplateLogic extends BaseLogic | ||
| 171 | * @time :2023/7/21 18:08 | 171 | * @time :2023/7/21 18:08 |
| 172 | */ | 172 | */ |
| 173 | public function getBodyHeaderFooter($preg_html,$html_style){ | 173 | public function getBodyHeaderFooter($preg_html,$html_style){ |
| 174 | - if(!empty($preg_html)){ | 174 | + if(empty($preg_html)){ |
| 175 | $preg_html = "<main></main>"; | 175 | $preg_html = "<main></main>"; |
| 176 | $html_style = "<style id='globalsojs-styles'></style>"; | 176 | $html_style = "<style id='globalsojs-styles'></style>"; |
| 177 | } | 177 | } |
| @@ -186,8 +186,6 @@ class CustomTemplateLogic extends BaseLogic | @@ -186,8 +186,6 @@ class CustomTemplateLogic extends BaseLogic | ||
| 186 | $html = $commonInfo['head_css'].$html_style.$commonInfo['footer_css'].$commonInfo['other']. | 186 | $html = $commonInfo['head_css'].$html_style.$commonInfo['footer_css'].$commonInfo['other']. |
| 187 | $commonInfo['head_html'].$preg_html.$commonInfo['footer_html']; | 187 | $commonInfo['head_html'].$preg_html.$commonInfo['footer_html']; |
| 188 | } | 188 | } |
| 189 | - var_dump($html); | ||
| 190 | - die(); | ||
| 191 | return $html; | 189 | return $html; |
| 192 | } | 190 | } |
| 193 | 191 |
-
请 注册 或 登录 后发表评论