Showing
1 changed file
with
8 additions
and
2 deletions
@@ -189,8 +189,14 @@ class IndexController extends AbstractAction | @@ -189,8 +189,14 @@ class IndexController extends AbstractAction | ||
189 | // 构建资讯文章内容 | 189 | // 构建资讯文章内容 |
190 | if (!empty($article['data']['list']['artList'])) { | 190 | if (!empty($article['data']['list']['artList'])) { |
191 | $build = array(); | 191 | $build = array(); |
192 | - foreach ($article['data']['list']['artList'] as $article) { | ||
193 | - $build[] = Helpers::formatArticle($article, true, $isApp, false, $uid); | 192 | +// foreach ($article['data']['list']['artList'] as $article) { |
193 | +// $build[] = Helpers::formatArticle($article, true, $isApp, false, $uid); | ||
194 | +// } | ||
195 | + foreach ($article['data']['list']['artList'] as $articlekey =>$article) { | ||
196 | + $build[$key] = Helpers::formatArticle($article, true, $isApp, false, $uid); | ||
197 | + if($this->isApp()){ | ||
198 | + $build[$articlekey]['collect']['url'] = Helpers::url('/author/index', array('id' => $id), 'guang'); | ||
199 | + } | ||
194 | } | 200 | } |
195 | $data['guang']['infos'] = $build; | 201 | $data['guang']['infos'] = $build; |
196 | } | 202 | } |
-
Please register or login to post a comment