// 引用hutool的httpUtil和阿里的json依赖
public static String getAddress(String ip) {
    try {
        String result = HttpUtil.get("http://whois.pconline.com.cn/ipJson.jsp?ip=" + ip + "&json=true");
        JSONObject jsonObject = JSONObject.parseObject(result);
        if (jsonObject != null && StringUtils.isNotEmpty(jsonObject.getString("addr"))) {
            return  jsonObject.getString("addr");
        }
        return null;
    } catch (Exception e) {
        e.printStackTrace();
        log.info("IP地址信息解析异常--->{}",e.getMessage());
        return null;
    }
}