From 585fb77e6f5e2eb6defd6798db2beda78cfb53ac Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Fri, 17 Dec 2021 16:39:07 +0800 Subject: [PATCH] settter --- app/controller/api/Area.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/Area.php b/app/controller/api/Area.php index 951b597..65c4845 100644 --- a/app/controller/api/Area.php +++ b/app/controller/api/Area.php @@ -70,6 +70,6 @@ class Area extends Base $provinceCode[$item["pcode"]]["children"][] =$item; } } - return $this->json(0,"success",$provinceCode); + return $this->json(0,"success",array_values($provinceCode)); } } \ No newline at end of file