修改分类

This commit is contained in:
ouzhiqiang
2025-09-19 14:59:45 +08:00
parent 2073a27ef7
commit f154f3ddf6

View File

@@ -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;
} }