正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -233,7 +233,12 @@ class CustomTemplateLogic extends BaseLogic | @@ -233,7 +233,12 @@ class CustomTemplateLogic extends BaseLogic | ||
| 233 | $commonInfo['head_html'].$preg_html.$commonInfo['footer_html']; | 233 | $commonInfo['head_html'].$preg_html.$commonInfo['footer_html']; |
| 234 | }else{ | 234 | }else{ |
| 235 | //兼容老数据,获取首页数据 | 235 | //兼容老数据,获取首页数据 |
| 236 | - $TemplateInfo = $this->webTemplateInfo($info['template_id'],1,0); | 236 | + $TemplateInfo = $this->model->read([ |
| 237 | + 'template_id'=>$info['template_id'], | ||
| 238 | + 'source'=>1, | ||
| 239 | + 'project_id'=>$this->user['project_id'], | ||
| 240 | + 'source_id'=>0, | ||
| 241 | + ]);; | ||
| 237 | if($TemplateInfo !== false){ | 242 | if($TemplateInfo !== false){ |
| 238 | $html = preg_replace('/<style id="globalsojs-styles">(.*?)<\/style>/s',$html_style , $TemplateInfo['html']); | 243 | $html = preg_replace('/<style id="globalsojs-styles">(.*?)<\/style>/s',$html_style , $TemplateInfo['html']); |
| 239 | //内容 | 244 | //内容 |
-
请 注册 或 登录 后发表评论