修改分类

This commit is contained in:
ouzhiqiang
2025-09-19 10:04:47 +08:00
parent 4cd2f4ad26
commit 5d5a338b55

View File

@@ -270,6 +270,7 @@ class TopicNas extends Common
if (!$article_categorys->isEmpty()) { if (!$article_categorys->isEmpty()) {
foreach ($article_categorys->toArray() as $kk=>$vv) { foreach ($article_categorys->toArray() as $kk=>$vv) {
if ( $parent == $vv['pid'] ) { if ( $parent == $vv['pid'] ) {
$vv['child'] = '';
array_push($article_categorys_new,$vv); array_push($article_categorys_new,$vv);
} else { } else {
$article_categorys_two[$vv['pid']][] = $vv; $article_categorys_two[$vv['pid']][] = $vv;