P2P配置自定义域保存于cfg_index_info表以及修改改动涉及功能.
This commit is contained in:
@@ -198,11 +198,11 @@ public class CheckIpFormatThread implements Callable<String>{
|
||||
//p2p ip
|
||||
if (regionDict.getFunctionId().equals(510) && "p2p_ip".equals(regionDict.getConfigServiceType())) { // P2p
|
||||
// IP
|
||||
String userRegion1 = baseIpCfg.getUserRegion1();
|
||||
String userRegion2 = baseIpCfg.getUserRegion2();
|
||||
List<SysDataDictionaryItem> ipTypes = DictUtils.getDictList("P2P_IP_TYPE");
|
||||
boolean has = false;
|
||||
for (SysDataDictionaryItem type : ipTypes) {
|
||||
if (type.getItemCode().equals(userRegion1)) {
|
||||
if (type.getItemCode().equals(userRegion2)) {
|
||||
has = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user