|
...
|
...
|
@@ -104,16 +104,14 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$ATemplateModel = new Template();
|
|
|
|
$TemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]);
|
|
|
|
}else{
|
|
|
|
//兼容老数据
|
|
|
|
$commonTemplateModel = new BTemplateCommon();
|
|
|
|
$commonInfo = $commonTemplateModel->read(['template_id'=>$info['template_id'],'project_id'=>$this->user['project_id']]);
|
|
|
|
if($commonInfo !== false){
|
|
|
|
$TemplateInfo['html'] = $commonInfo['head_css'].$TemplateInfo['main_css'].$commonInfo['footer_css'].$commonInfo['other'].
|
|
|
|
$commonInfo['head_html'].$TemplateInfo['main_html'].$commonInfo['footer_html'];
|
|
|
|
}
|
|
|
|
//渲染首页数据
|
|
|
|
$ATemplateModel = new Template();
|
|
|
|
$ATemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']]);
|
|
|
|
$ATemplateInfo = $ATemplateModel->read(['id'=>$info['template_id']],['name','image']);
|
|
|
|
$TemplateInfo['name'] = $ATemplateInfo['name'];
|
|
|
|
$TemplateInfo['image_link'] = getImageUrl($ATemplateInfo['image']);
|
|
|
|
}
|
...
|
...
|
|