|
...
|
...
|
@@ -72,7 +72,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
$bTemplateComModel = new BTemplateCom();
|
|
|
|
$otherInfo = $bTemplateComModel->read(['source'=>$headComInfo['source'],'common_type'=>BTemplate::COMMON_OTHER,'is_list'=>$headComInfo['is_list'],'is_custom'=>$headComInfo['is_custom']]);
|
|
|
|
if($otherInfo === false){
|
|
|
|
$this->fail('获取失败,请联系管理员');
|
|
|
|
$this->fail('获取失败,请联系管理员2');
|
|
|
|
}
|
|
|
|
$footerComInfo = $this->getFooterComHtml($condition,$source,$is_list,$is_custom,$template_id);
|
|
|
|
$data = ['head_html'=>$headComInfo['html'] ?? '', 'head_style'=>$headComInfo['html_style'] ?? '', 'other'=>$otherInfo['html'] ?? '',
|
|
...
|
...
|
@@ -97,7 +97,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
//取默认公共的
|
|
|
|
$headComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_HEAD]);
|
|
|
|
if($headComInfo === false){
|
|
|
|
$this->fail('获取失败,请联系管理员');
|
|
|
|
$this->fail('获取失败,请联系管理员1');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($headComInfo);
|
|
...
|
...
|
@@ -118,7 +118,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
//取默认首页的
|
|
|
|
$footerComInfo = $bTemplateComModel->read(['source'=>BTemplate::SOURCE_COM,'common_type'=>BTemplate::COMMON_FOOTER]);
|
|
|
|
if($footerComInfo === false){
|
|
|
|
$this->fail('获取失败,请联系管理员');
|
|
|
|
$this->fail('获取失败,请联系管理员3');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($footerComInfo);
|
...
|
...
|
|