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