|
...
|
...
|
@@ -233,7 +233,12 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
$commonInfo['head_html'].$preg_html.$commonInfo['footer_html'];
|
|
|
|
}else{
|
|
|
|
//兼容老数据,获取首页数据
|
|
|
|
$TemplateInfo = $this->webTemplateInfo($info['template_id'],1,0);
|
|
|
|
$TemplateInfo = (new BTemplate())->read([
|
|
|
|
'template_id'=>$info['template_id'],
|
|
|
|
'source'=>1,
|
|
|
|
'project_id'=>$this->user['project_id'],
|
|
|
|
'source_id'=>0,
|
|
|
|
]);;
|
|
|
|
if($TemplateInfo !== false){
|
|
|
|
$html = preg_replace('/<style id="globalsojs-styles">(.*?)<\/style>/s',$html_style , $TemplateInfo['html']);
|
|
|
|
//内容
|
...
|
...
|
|