代码优化

This commit is contained in:
稚屿
2022-02-09 09:10:50 +08:00
parent a29201a248
commit c99eb98001
16 changed files with 37 additions and 57 deletions

View File

@ -25,7 +25,6 @@ public class AddressUtils
public static String getRealAddressByIP(String ip)
{
String address = UNKNOWN;
// 内网不查询
if (IpUtils.internalIp(ip))
{
@ -51,6 +50,6 @@ public class AddressUtils
log.error("获取地理位置异常 {}", ip);
}
}
return address;
return UNKNOWN;
}
}