diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index b18f43e28..0ec4e3c24 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -64,6 +64,9 @@ var ( "苏州工业园区": "工业园区", "郫都区": "郫县", "管城回族区": "管城区", + "昆山市": "1", + "常熟市": "1", + "太仓市": "1", } ) @@ -951,7 +954,12 @@ func updateOrCreateDadaStore(storeDetail *dao.StoreDetail2) (err error) { return fmt.Errorf("门店的城市码有问题,请检查") } if dadaDistrictMap[storeDetail.DistrictName] != "" { - storeDetail.DistrictName = dadaDistrictMap[storeDetail.DistrictName] + if dadaDistrictMap[storeDetail.DistrictName] == "1" { // 区镇信息 + storeDetail.CityName = storeDetail.DistrictName + storeDetail.DistrictName, _ = api.AutonaviAPI.GetCoordinateTownInfo(jxutils.IntCoordinate2Standard(storeDetail.Lng), jxutils.IntCoordinate2Standard(storeDetail.Lat)) + } else { + storeDetail.DistrictName = dadaDistrictMap[storeDetail.DistrictName] + } } if globals.EnableStoreWrite { _, err = api.DadaAPI.ShopDetail(storeDetail.DadaStoreID)