|
...
|
...
|
@@ -57,6 +57,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
$html = $commonInfo['head_style'].$main_style.$commonInfo['footer_style'].$commonInfo['other'].$commonInfo['head_html'].$main_html.$commonInfo['footer_html'];
|
|
|
|
$html = $this->getHeadFooter($html);//组装数据
|
|
|
|
$data['html'] = $html;
|
|
|
|
$data['template_id'] = $template_id;
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -96,7 +97,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
$headComInfo = $bTemplateComModel->read($condition);
|
|
|
|
if($headComInfo === false){
|
|
|
|
//取默认公共的
|
|
|
|
$headComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_HEAD]);
|
|
|
|
$headComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_HEAD,'template_id'=>$template_id]);
|
|
|
|
if($headComInfo === false){
|
|
|
|
$this->fail('获取失败,请联系管理员1');
|
|
|
|
}
|
|
...
|
...
|
@@ -117,7 +118,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
$footerComInfo = $bTemplateComModel->read($condition);
|
|
|
|
if($footerComInfo === false){
|
|
|
|
//取默认首页的
|
|
|
|
$footerComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_FOOTER]);
|
|
|
|
$footerComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_FOOTER,'template_id'=>$template_id]);
|
|
|
|
if($footerComInfo === false){
|
|
|
|
$this->fail('获取失败,请联系管理员3');
|
|
|
|
}
|
...
|
...
|
|