作者 lyh

gx

@@ -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 //内容