master
duhui 2022-08-27 21:48:47 +08:00
parent 395a1e3b2b
commit 58b9446a16
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,8 @@ public class SensitivewordFilter {
word = txt.charAt(i);
nowMap = (Map) nowMap.get(word); //获取指定key
if (logTest){
LOGGER.info(nowMap.toString());
LOGGER.info("============================={}",nowMap.toString());
System.out.println("============================="+nowMap.toString());
}
//不存在,直接返回
if (nowMap == null){
@ -161,6 +162,7 @@ public class SensitivewordFilter {
matchFlag = 0;
}
if (logTest){
System.out.println("=========================结果:"+matchFlag);
LOGGER.info("=========================结果:{}",matchFlag);
}
return matchFlag;