do fixes bug to nav bar and guang home page show one tab data
Showing
2 changed files
with
3 additions
and
2 deletions
@@ -157,10 +157,10 @@ class IndexModel | @@ -157,10 +157,10 @@ class IndexModel | ||
157 | } | 157 | } |
158 | 158 | ||
159 | // 内容列表 | 159 | // 内容列表 |
160 | - if (!empty($article['data']['list']['artlist'])) { | 160 | + if (!empty($article['data']['list']['artList'])) { |
161 | $type = intval($type); | 161 | $type = intval($type); |
162 | foreach ($article['data']['list']['artList'] as $value) { | 162 | foreach ($article['data']['list']['artList'] as $value) { |
163 | - $data['guang']['infos'][$type]['info'] = Helpers::formatArticle($value, true, false, true); | 163 | + $data['guang']['infos'][$type]['info'][] = Helpers::formatArticle($value, true, false, true); |
164 | } | 164 | } |
165 | } | 165 | } |
166 | 166 |
-
Please register or login to post a comment