|
...
|
...
|
@@ -72,6 +72,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
$bTemplateComModel = new BTemplateCom();
|
|
|
|
$condition['common_type'] = BTemplate::COMMON_OTHER;
|
|
|
|
$condition['source'] = $headComInfo['source'];
|
|
|
|
$condition['is_list'] = $headComInfo['is_list'];
|
|
|
|
$otherInfo = $bTemplateComModel->read($condition);
|
|
|
|
if($otherInfo === false){
|
|
|
|
$this->fail('获取失败,请联系管理员');
|
|
...
|
...
|
@@ -98,6 +99,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
if($headComInfo === false){
|
|
|
|
//取默认公共的
|
|
|
|
$condition['source'] = BTemplate::SOURCE_COM;
|
|
|
|
$condition['is_list'] = 0;
|
|
|
|
$headComInfo = $bTemplateComModel->read($condition);
|
|
|
|
if($headComInfo === false){
|
|
|
|
$this->fail('获取失败,请联系管理员');
|
|
...
|
...
|
@@ -120,6 +122,7 @@ class InitHtmlLogic extends BaseLogic |
|
|
|
if($footerComInfo === false){
|
|
|
|
//取默认首页的
|
|
|
|
$condition['source'] = BTemplate::SOURCE_COM;
|
|
|
|
$condition['is_list'] = 0;
|
|
|
|
$footerComInfo = $bTemplateComModel->read($condition);
|
|
|
|
if($footerComInfo === false){
|
|
|
|
$this->fail('获取失败,请联系管理员');
|
...
|
...
|
|