diff --git a/app/index/controller/TopicNas.php b/app/index/controller/TopicNas.php index 6471e76c..ad52c5fc 100644 --- a/app/index/controller/TopicNas.php +++ b/app/index/controller/TopicNas.php @@ -227,10 +227,13 @@ class TopicNas extends Common foreach ($article_categorys_new as &$vvv) { $articles = $vvv['article']; if ( isset($article_categorys_two[$vvv['id']]) ) { - foreach ($article_categorys_two[$vvv['id']] as $k=>$v) { - $articles = array_merge($articles,$v['article']); + foreach ($article_categorys_two[$vvv['id']] as $v) { + foreach ($v['article'] as $av) { + if ( count($articles) < 3 ) { + array_push($articles,$av); + } + } } - } $vvv['article'] = $articles; }