优化代码

This commit is contained in:
RuoYi
2022-02-12 21:43:56 +08:00
parent 365d18914c
commit 28d4bda76a
26 changed files with 44 additions and 65 deletions

View File

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