generated from root/miduo_server
日志取消
parent
3220d95cf1
commit
0de341a431
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue