From 0d661018e9c14846c9b4cb5c45d291547c9c53f5 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Tue, 20 May 2025 18:03:31 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=90=E4=BA=A4=E7=BC=BA=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E4=B8=9C=E8=A5=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common.php b/app/common.php index f8cfead..5fff698 100755 --- a/app/common.php +++ b/app/common.php @@ -161,7 +161,7 @@ function is_https() * @param int $parent_id 此值请勿给参数 * @return array */ -function linear_to_tree($data, $sub_key_name = 'sub', $id_name = 'id', $parent_id_name = 'pid', $parent_id = 0) +function linear_to_tree($data, $sub_key_name = 'children', $id_name = 'id', $parent_id_name = 'pid', $parent_id = 0) { $tree = []; foreach ($data as $row) {