### Question:
Ip2AddressUtil { public static String getAddressOnNetByTaoBao(String ip) { String address = ""; try { Map<String, Object> params = Maps.newHashMap(); params.put("ip", ip); String ret = HttpUtil.get(IP_URL, params, 2000); JSONObject json = JSONUtil.parseObj(ret); Integer code = json.getInt("code"); if (ObjectUtil.equal(code, 0)) { JSONObject data = json.getJSONObject("data"); String country = data.getStr("country"); String area = data.getStr("area"); String region = data.getStr("region"); String city = data.getStr("city"); String isp = data.getStr("isp"); List<String> addressInfo = Lists.newArrayList(country, area, region, city, isp); List<String> addressInfoFilter = addressInfo.stream() .filter(s -> StrUtil.isNotBlank(s) && !StrUtil.equals("XX", s)) .distinct() .collect(Collectors.toList()); address = Joiner.on("|").join(addressInfoFilter); } } catch (Exception e) { log.error("【获取地理位置】发生异常:", e); } return address; }  static String getAddressInLocal(String ip); static String getAddressOnNetByTaoBao(String ip);  }### Answer:
@Test public void testGetAddressOnNetByTaoBao(){ log.info("测试淘宝ip"); String address1 = Ip2AddressUtil.getAddressOnNetByTaoBao(ip1); log.info("【address1】= {}", address1); String address2 = Ip2AddressUtil.getAddressOnNetByTaoBao(ip2); log.info("【address2】= {}", address2); }