From eace2ae518c2d78b5798b78a815140c497ef7058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 30 Jun 2020 09:48:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E5=95=86=E5=9F=8E=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=9B=B4=E8=BE=96=E5=B8=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/jdshop/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/partner/purchase/jdshop/store.go b/business/partner/purchase/jdshop/store.go index 96b4d9bea..ea2bd3bda 100644 --- a/business/partner/purchase/jdshop/store.go +++ b/business/partner/purchase/jdshop/store.go @@ -109,10 +109,10 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri if model.ZXCityCodeMap[store.CityCode] != "" { result1, _ := api.JdShopAPI.GetProvince() for _, v := range result1 { - if v.AreaName == model.ZXCityCodeMap[store.CityCode] { + if strings.Contains(model.ZXCityCodeMap[store.CityCode], v.AreaName) { result2, _ := api.JdShopAPI.GetCity(v.AreaID) for _, vv := range result2 { - if vv.AreaName == store.DistrictName { + if strings.Contains(store.DistrictName, vv.AreaName) { result3, _ := api.JdShopAPI.GetCounty(vv.AreaID) for _, vvv := range result3 { result, _ := api.AutonaviAPI.GetCoordinateAreaInfo(jxutils.IntCoordinate2Standard(store.Lng), jxutils.IntCoordinate2Standard(store.Lat))