日志取消

master
duhui 2022-08-29 20:43:16 +08:00
parent 3220d95cf1
commit 0de341a431
2 changed files with 0 additions and 6 deletions

View File

@ -12,7 +12,6 @@ public class CoreService implements com.ljsd.jieling.thrift.idl.RPCRequestIFace.
@Override
public boolean isContaintSensitiveWord(String txt, int matchType) throws TException {
boolean containtSensitiveWord = SensitivewordFilter.isContaintSensitiveWord(txt, matchType);
LOGGER.info("敏感字检查=============================:{},{},{}",txt,matchType,containtSensitiveWord);
return containtSensitiveWord;
}
@ -26,7 +25,6 @@ public class CoreService implements com.ljsd.jieling.thrift.idl.RPCRequestIFace.
i = i + length - 1; //减1的原因是因为for会自增
}
}
LOGGER.info("敏感字检查2=============================:{},{},{}",txt,matchType,sensitiveWordList);
return sensitiveWordList;
}
}

View File

@ -135,8 +135,6 @@ public class SensitivewordFilter {
for (int i = beginIndex; i < txt.length(); i++) {
word = txt.charAt(i);
nowMap = (Map) nowMap.get(word); //获取指定key
LOGGER.info("============================={}",nowMap.toString());
System.out.println("============================="+nowMap.toString());
//不存在,直接返回
if (nowMap == null){
break;
@ -158,8 +156,6 @@ public class SensitivewordFilter {
if (matchFlag < 1 || !flag) {
matchFlag = 0;
}
System.out.println("=========================结果:"+matchFlag);
LOGGER.info("=========================结果:{}",matchFlag);
return matchFlag;
}