From eb9a91941d56ec5cd609964d00bf614033d9bd34 Mon Sep 17 00:00:00 2001 From: ouzhiqiang <835402500@qq.com> Date: Thu, 18 Sep 2025 16:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/TopicNas.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/index/controller/TopicNas.php b/app/index/controller/TopicNas.php index 4381463c..e2945a12 100644 --- a/app/index/controller/TopicNas.php +++ b/app/index/controller/TopicNas.php @@ -275,6 +275,11 @@ class TopicNas extends Common $article_categorys_two[$vv->pid][] = $vv; } } + if ( !empty($article_categorys_two) ) { + foreach ($article_categorys_new as &$vvv) { + $vvv['child'] = isset($article_categorys_two[$vvv->pid])?$article_categorys_two[$vvv->pid]:''; + } + } } dump($article_categorys_new); dump($article_categorys_two);exit;