mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-21 18:45:57 +08:00
优化代码 删除冗余的局部变量‘address’
Signed-off-by: 梁剑锋 <1822213252@qq.com>
This commit is contained in:
parent
842af57d74
commit
d9e7086b17
@ -28,9 +28,8 @@ public class AddressUtils {
|
|||||||
public static final String UNKNOWN = "XX XX";
|
public static final String UNKNOWN = "XX XX";
|
||||||
|
|
||||||
public static String getRealAddressByIP(String ip) {
|
public static String getRealAddressByIP(String ip) {
|
||||||
String address = UNKNOWN;
|
|
||||||
if (StringUtils.isBlank(ip)) {
|
if (StringUtils.isBlank(ip)) {
|
||||||
return address;
|
return UNKNOWN;
|
||||||
}
|
}
|
||||||
// 内网不查询
|
// 内网不查询
|
||||||
ip = "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : HtmlUtil.cleanHtmlTag(ip);
|
ip = "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : HtmlUtil.cleanHtmlTag(ip);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user