From 3a502914128044635eb50db34f1aab16e097f9f2 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 29 May 2019 14:41:48 +0800 Subject: [PATCH] =?UTF-8?q?-=20"=E8=99=9E=E5=B1=B1=E8=A1=97=E9=81=93"->"?= =?UTF-8?q?=E8=99=9E=E5=B1=B1=E9=95=87"=20-=20"=E5=B8=B8=E7=A6=8F=E8=A1=97?= =?UTF-8?q?=E9=81=93"->"=E8=99=9E=E5=B1=B1=E9=95=87"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 0ec4e3c24..4e8a732a0 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -67,6 +67,8 @@ var ( "昆山市": "1", "常熟市": "1", "太仓市": "1", + "虞山街道": "虞山镇", + "常福街道": "虞山镇", } ) @@ -957,7 +959,8 @@ func updateOrCreateDadaStore(storeDetail *dao.StoreDetail2) (err error) { if dadaDistrictMap[storeDetail.DistrictName] == "1" { // 区镇信息 storeDetail.CityName = storeDetail.DistrictName storeDetail.DistrictName, _ = api.AutonaviAPI.GetCoordinateTownInfo(jxutils.IntCoordinate2Standard(storeDetail.Lng), jxutils.IntCoordinate2Standard(storeDetail.Lat)) - } else { + } + if dadaDistrictMap[storeDetail.DistrictName] != "" { storeDetail.DistrictName = dadaDistrictMap[storeDetail.DistrictName] } }