| | |
| | | import org.slf4j.Logger;
|
| | | import org.slf4j.LoggerFactory;
|
| | | import com.alibaba.fastjson.JSONObject;
|
| | | import com.ruoyi.common.constant.Constants;
|
| | | import com.ruoyi.common.utils.StringUtils;
|
| | | import com.ruoyi.common.utils.http.HttpUtils;
|
| | | import com.ruoyi.framework.config.RuoYiConfig;
|
| | |
| | | {
|
| | | try
|
| | | {
|
| | | String rspStr = HttpUtils.sendGet(IP_URL, "ip=" + ip + "&json=true");
|
| | | String rspStr = HttpUtils.sendGet(IP_URL, "ip=" + ip + "&json=true", Constants.GBK);
|
| | | if (StringUtils.isEmpty(rspStr))
|
| | | {
|
| | | log.error("获取地理位置异常 {}", ip);
|