|
|
|
@@ -723,7 +723,6 @@ public class TtMerchantPoiServiceImpl implements TtMerchantPoiService { |
|
|
|
StringBuffer url = new StringBuffer("https://restapi.amap.com/v3/geocode/geo?"); |
|
|
|
try { |
|
|
|
String result = HttpUtil.doGet(url.append("key=").append(gaodeKey).append("&address=").append(address).toString()); |
|
|
|
logger.debug(">>>>> gaode result >>>>"+result); |
|
|
|
if (!StringUtils.isBlank(result)){ |
|
|
|
GaoDePoiInfo gaodeInfo = new GaoDePoiInfo(); |
|
|
|
JSONObject reo = JSON.parseObject(result); |
|
|
|
@@ -769,12 +768,14 @@ public class TtMerchantPoiServiceImpl implements TtMerchantPoiService { |
|
|
|
gaodeInfo.setSuccess(false); |
|
|
|
gaodeInfo.setErrMsg(info); |
|
|
|
} |
|
|
|
return gaodeInfo; |
|
|
|
} |
|
|
|
}catch(Exception e) { |
|
|
|
logger.error("queryGaoDePoiInfo error.",e); |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// @Override |
|
|
|
// public ResultData spuSync(TenantEntity tenantInfo, Long couponChannelId, List<Long> merchantIds) { |
|
|
|
|