Jelajahi Sumber

新的地区接口

lizhen_gitee 1 tahun lalu
induk
melakukan
03294cfe0c
1 mengubah file dengan 9 tambahan dan 1 penghapusan
  1. 9 1
      application/api/controller/Area.php

+ 9 - 1
application/api/controller/Area.php

@@ -23,7 +23,15 @@ class Area extends Api
             }
         }
 
-        $this->success(1,$zimuarr);
+        $result = [];
+        foreach($zimuarr as $k => $v){
+            $result[] = [
+                'zimu'=>$k,
+                'child' => $v,
+            ];
+        }
+
+        $this->success(1,$result);
     }
 
     public function area_list(){