配置保护名单功能改为实时查询.
This commit is contained in:
@@ -10,7 +10,7 @@ public class P2pIpTemplate extends IpAllTemplate {
|
||||
|
||||
private String userRegion2;
|
||||
|
||||
@ExcelField(title="p2p_ip_config_type",dictType="P2P_IP_TYPE",align=2,sort=2)
|
||||
@ExcelField(title="p2p_ip_config_type",dictType="P2P_IP_TYPE",align=2,sort=5)
|
||||
public String getUserRegion2() {
|
||||
return userRegion2;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,9 @@ public class InnerProtectionListService extends BaseService{
|
||||
if(dictMap.containsKey(info.getTargetType())) {
|
||||
putList = dictMap.get(info.getTargetType());
|
||||
}
|
||||
putList.add(info.getKeyword());
|
||||
if(!putList.contains(info.getKeyword())) {
|
||||
putList.add(info.getKeyword());
|
||||
}
|
||||
dictMap.put(info.getTargetType(), putList);
|
||||
}
|
||||
CacheUtils.put(Constants.CACHE_PROTECTION_LIST_DICT, dictMap);
|
||||
|
||||
Reference in New Issue
Block a user