Authored by cailing

逛作者列表页链接修改

@@ -189,8 +189,15 @@ class IndexController extends AbstractAction @@ -189,8 +189,15 @@ 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, $showAuthor, $uid);
  194 +// }
  195 + //逛作者列表页跳转链接修改
  196 + foreach ($article['data']['list']['artList'] as $articlekey =>$article) {
  197 + $build[$articlekey ] = Helpers::formatArticle($article, true, $isApp, false, $uid);
  198 + if($this->isApp()){
  199 + $build[$articlekey]['url'] = Helpers::url('/author/index', array('id' => $id, 'app_version' => $this->get('app_version', '')), 'guang');
  200 + }
194 } 201 }
195 $data['guang']['infos'] = $build; 202 $data['guang']['infos'] = $build;
196 } 203 }