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',