正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
| @@ -124,15 +124,14 @@ class BTemplateLogic extends BaseLogic | @@ -124,15 +124,14 @@ class BTemplateLogic extends BaseLogic | ||
| 124 | $bTemplateComModel = new BTemplateCom(); | 124 | $bTemplateComModel = new BTemplateCom(); |
| 125 | $condition['source'] = $commonHead; | 125 | $condition['source'] = $commonHead; |
| 126 | $condition['common_type'] = BTemplate::COMMON_HEAD; | 126 | $condition['common_type'] = BTemplate::COMMON_HEAD; |
| 127 | - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($condition, true) . PHP_EOL, FILE_APPEND); | ||
| 128 | - | ||
| 129 | $headComInfo = $bTemplateComModel->read($condition); | 127 | $headComInfo = $bTemplateComModel->read($condition); |
| 130 | if($headComInfo === false){ | 128 | if($headComInfo === false){ |
| 131 | //取默认公共的 | 129 | //取默认公共的 |
| 132 | $condition['source'] = BTemplate::SOURCE_COM; | 130 | $condition['source'] = BTemplate::SOURCE_COM; |
| 131 | + $condition['is_list'] = BTemplate::IS_DETAIL; | ||
| 133 | $headComInfo = $bTemplateComModel->read($condition); | 132 | $headComInfo = $bTemplateComModel->read($condition); |
| 134 | if($headComInfo === false){ | 133 | if($headComInfo === false){ |
| 135 | - $this->fail('获取失败,请联系管理员111111'); | 134 | + $this->fail('获取失败,请联系管理员'); |
| 136 | } | 135 | } |
| 137 | } | 136 | } |
| 138 | return $this->success($headComInfo); | 137 | return $this->success($headComInfo); |
-
请 注册 或 登录 后发表评论