修改分类
This commit is contained in:
@@ -227,10 +227,13 @@ class TopicNas extends Common
|
|||||||
foreach ($article_categorys_new as &$vvv) {
|
foreach ($article_categorys_new as &$vvv) {
|
||||||
$articles = $vvv['article'];
|
$articles = $vvv['article'];
|
||||||
if ( isset($article_categorys_two[$vvv['id']]) ) {
|
if ( isset($article_categorys_two[$vvv['id']]) ) {
|
||||||
foreach ($article_categorys_two[$vvv['id']] as $k=>$v) {
|
foreach ($article_categorys_two[$vvv['id']] as $v) {
|
||||||
$articles = array_merge($articles,$v['article']);
|
foreach ($v['article'] as $av) {
|
||||||
|
if ( count($articles) < 3 ) {
|
||||||
|
array_push($articles,$av);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$vvv['article'] = $articles;
|
$vvv['article'] = $articles;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user