generated from root/miduo_server
master
parent
395a1e3b2b
commit
58b9446a16
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue