Kirin 4 vuotta sitten
vanhempi
commit
4b40ff592e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/api/controller/PublicController.php

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

@@ -41,7 +41,7 @@ class PublicController
             if (count($citys)) {
             if (count($citys)) {
                 foreach ($citys as $kk => $vv) {
                 foreach ($citys as $kk => $vv) {
                     $childs = [];
                     $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)) {
                     if (count($dictres)) {
                         foreach ($dictres as $kkk => $vvv) {
                         foreach ($dictres as $kkk => $vvv) {
                             $ress = ['value' => $kkk + 1, 'label' => $vvv['name']];
                             $ress = ['value' => $kkk + 1, 'label' => $vvv['name']];