作者 lyh

gx

@@ -233,7 +233,7 @@ class CustomTemplateLogic extends BaseLogic @@ -233,7 +233,7 @@ 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->model->read([ 236 + $TemplateInfo = (new BTemplate())->read([
237 'template_id'=>$info['template_id'], 237 'template_id'=>$info['template_id'],
238 'source'=>1, 238 'source'=>1,
239 'project_id'=>$this->user['project_id'], 239 'project_id'=>$this->user['project_id'],