Kirin 4 سال پیش
والد
کامیت
9a959db950
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/api/controller/PublicController.php

+ 1 - 1
app/api/controller/PublicController.php

@@ -38,10 +38,10 @@ class PublicController
         foreach ($province as $k => $v) {
         foreach ($province as $k => $v) {
             $child = [];
             $child = [];
             $citys = SystemCity::where('level', 1)->where('parent_id', $v['id'])->select();
             $citys = SystemCity::where('level', 1)->where('parent_id', $v['id'])->select();
+            var_dump($citys);
             if (count($citys)) {
             if (count($citys)) {
                 foreach ($citys as $kk => $vv) {
                 foreach ($citys as $kk => $vv) {
                     $childs = [];
                     $childs = [];
-                    var_dump($vv['id']);
                     $dictres = SystemCity::where('level', 2)->where('parent_id', $vv['id'])->select();
                     $dictres = SystemCity::where('level', 2)->where('parent_id', $vv['id'])->select();
 //                    var_dump($dictres);
 //                    var_dump($dictres);
                     if (count($dictres)) {
                     if (count($dictres)) {