REM:
1. 修该ipType命名
This commit is contained in:
HuangXin 2020-10-29 14:29:29 +08:00
parent 4175187ec3
commit 09adf46ef3
2 changed files with 6 additions and 4 deletions

View File

@ -350,14 +350,14 @@ public class PengXinAbilityImpl implements DisposeAbility {
protectIpV4.clear(); protectIpV4.clear();
protectIpV6.clear(); protectIpV6.clear();
if (v.getIPType() == null || v.getIPType().equals(IpAddrType.IPV4_IPV6.getValue())) { if (v.getIpType() == null || v.getIpType().equals(IpAddrType.IPV4_IPV6.getValue())) {
if (v.getDisposeIp() == null) { if (v.getDisposeIp() == null) {
protectIpV4.add(""); protectIpV4.add("");
protectIpV6.add(""); protectIpV6.add("");
} }
} else if (v.getIPType().equals(IpAddrType.IPV4.getValue())) { } else if (v.getIpType().equals(IpAddrType.IPV4.getValue())) {
protectIpV4.add(""); protectIpV4.add("");
} else if (v.getIPType().equals(IpAddrType.IPV6.getValue())) { } else if (v.getIpType().equals(IpAddrType.IPV6.getValue())) {
protectIpV6.add(""); protectIpV6.add("");
} }
} }

View File

@ -1,6 +1,7 @@
package com.pengxin.dispose.common; package com.pengxin.dispose.common;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
@ -28,7 +29,8 @@ public class PengXinDisposeAbilityInfo {
/** /**
* The Ip type. * The Ip type.
*/ */
private Integer IPType; @JsonProperty("IPType")
private Integer ipType;
/** /**
* The Dispose ip. * The Dispose ip.