From ceec324c27c64d5aee8df6ae981d5df5738be85c Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Wed, 13 Jul 2022 17:12:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/address/address_map_page.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/address/address_map_page.dart b/lib/address/address_map_page.dart index f06ffe70..50d9013d 100644 --- a/lib/address/address_map_page.dart +++ b/lib/address/address_map_page.dart @@ -145,7 +145,7 @@ class _AddressMapPage extends State { var addressPoi = await apiService.searchPoi( "${latLng.latitude}", "${latLng.longitude}", keyWord, 20, 1); //如果定位列表无法显示,可以考虑数据是否不在当前字段里面;例:原数据放在['pois']里面,后改成了数据放在['entrances']里面 - List poi = addressPoi['entrances']; + List poi = addressPoi['pois']??addressPoi['entrances']; poiList = poi .map((e) => Address.fromJson({ "address": e["address"] is List ? "" : e["address"], diff --git a/pubspec.yaml b/pubspec.yaml index b6e03d8a..7b76b98b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: 一心回乡. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 2.0.32+20 +version: 2.0.33+21 environment: sdk: ">=2.7.0 <3.0.0"