Commit 7a28eb65 authored by tanyang's avatar tanyang

优化登录问题

parent 6ff0a5bb
......@@ -20,6 +20,7 @@ public class AddressUtils {
public static final String UNKNOWN = "XX XX";
public static String getRealAddressByIP(String ip) {
try {
if (StringUtils.isBlank(ip)) {
return UNKNOWN;
}
......@@ -29,5 +30,10 @@ public class AddressUtils {
return "内网IP";
}
return RegionUtils.getCityInfo(ip);
} catch (Exception e) {
log.error("IP地址异常 "+ip);
e.printStackTrace();
}
return null;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment