From b5b1549c12e1b4a7447567b238f84bb97ec404ad Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Mon, 7 Aug 2023 11:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9C=B0=E5=9D=80=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/merchant/store/shipping/City.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/merchant/store/shipping/City.php b/app/controller/merchant/store/shipping/City.php index 2fea961c..3158b0ea 100644 --- a/app/controller/merchant/store/shipping/City.php +++ b/app/controller/merchant/store/shipping/City.php @@ -57,7 +57,7 @@ class City extends BaseController $streetCode = $this->request->param('street_code') ?? ''; $list = app()->make(CityAreaRepository::class)->getGeoChildren(['province_code' => $provinceCode, 'city_code' => $cityCode, 'area_code' => $areaCode, 'street_code' => $streetCode]); $geoList = []; - foreach ($list->toArray() as $v) { + foreach ($list as $v) { if (!empty($v['village_id'])) { $temp = [ 'type' => 'village',