...
|
...
|
@@ -189,14 +189,8 @@ class IndexController extends AbstractAction |
|
|
// 构建资讯文章内容
|
|
|
if (!empty($article['data']['list']['artList'])) {
|
|
|
$build = array();
|
|
|
// foreach ($article['data']['list']['artList'] as $article) {
|
|
|
// $build[] = Helpers::formatArticle($article, true, $isApp, false, $uid);
|
|
|
// }
|
|
|
foreach ($article['data']['list']['artList'] as $articlekey =>$article) {
|
|
|
$build[$articlekey] = Helpers::formatArticle($article, true, $isApp, false, $uid);
|
|
|
if($this->isApp()){
|
|
|
$build[$articlekey]['collect']['url'] = Helpers::url('/author/index', array('id' => $id), 'guang');
|
|
|
}
|
|
|
foreach ($article['data']['list']['artList'] as $article) {
|
|
|
$build[] = Helpers::formatArticle($article, true, $isApp, false, $uid);
|
|
|
}
|
|
|
$data['guang']['infos'] = $build;
|
|
|
}
|
...
|
...
|
|