Kirin hace 4 años
padre
commit
4b40ff592e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/api/controller/PublicController.php

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

@@ -41,7 +41,7 @@ class PublicController
             if (count($citys)) {
                 foreach ($citys as $kk => $vv) {
                     $childs = [];
-                    $dictres = SystemCity::where('level', 1)->where('parent_id', $vv['id'])->select();
+                    $dictres = SystemCity::where('level', 2)->where('parent_id', $vv['id'])->select();
                     if (count($dictres)) {
                         foreach ($dictres as $kkk => $vvv) {
                             $ress = ['value' => $kkk + 1, 'label' => $vvv['name']];