配置保护名单功能改为实时查询.

This commit is contained in:
zhangwenqing
2019-04-02 11:50:12 +08:00
parent 04db6bcb47
commit f6405c6f04
3 changed files with 39 additions and 21 deletions

View File

@@ -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);