| | |
| | | package com.taoke.autopay.utils; |
| | | |
| | | import com.google.gson.Gson; |
| | | import lombok.Data; |
| | | import net.sf.json.JSONObject; |
| | | import org.apache.commons.httpclient.HttpClient; |
| | | import org.apache.commons.httpclient.methods.GetMethod; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.io.Serializable; |
| | | import java.net.URLEncoder; |
| | | |
| | | public class IPUtil { |
| | |
| | | } |
| | | } |
| | | |
| | | public static class IPInfo { |
| | | @Data |
| | | public static class IPInfo implements Serializable { |
| | | private String province; |
| | | private String city; |
| | | private String country; |
| | |
| | | public IPInfo(String country, String province, String city) { |
| | | this.province = province; |
| | | this.city = city; |
| | | this.country = country; |
| | | } |
| | | |
| | | public String getProvince() { |
| | | return province; |
| | | } |
| | | |
| | | public void setProvince(String province) { |
| | | this.province = province; |
| | | } |
| | | |
| | | public String getCity() { |
| | | return city; |
| | | } |
| | | |
| | | public void setCity(String city) { |
| | | this.city = city; |
| | | } |
| | | |
| | | public String getCountry() { |
| | | return country; |
| | | } |
| | | |
| | | public void setCountry(String country) { |
| | | this.country = country; |
| | | } |
| | | } |