|
...
|
...
|
@@ -124,15 +124,14 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$bTemplateComModel = new BTemplateCom();
|
|
|
|
$condition['source'] = $commonHead;
|
|
|
|
$condition['common_type'] = BTemplate::COMMON_HEAD;
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($condition, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
|
|
|
|
$headComInfo = $bTemplateComModel->read($condition);
|
|
|
|
if($headComInfo === false){
|
|
|
|
//取默认公共的
|
|
|
|
$condition['source'] = BTemplate::SOURCE_COM;
|
|
|
|
$condition['is_list'] = BTemplate::IS_DETAIL;
|
|
|
|
$headComInfo = $bTemplateComModel->read($condition);
|
|
|
|
if($headComInfo === false){
|
|
|
|
$this->fail('获取失败,请联系管理员111111');
|
|
|
|
$this->fail('获取失败,请联系管理员');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($headComInfo);
|
...
|
...
|
|