Kirin 4 лет назад
Родитель
Сommit
4b40ff592e
1 измененных файлов с 1 добавлено и 1 удалено
  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']];