generated from root/miduo_server
master
parent
f50224f78e
commit
3220d95cf1
|
@ -12,6 +12,7 @@ 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;
|
||||
}
|
||||
|
||||
|
@ -25,6 +26,7 @@ public class CoreService implements com.ljsd.jieling.thrift.idl.RPCRequestIFace.
|
|||
i = i + length - 1; //减1的原因,是因为for会自增
|
||||
}
|
||||
}
|
||||
LOGGER.info("敏感字检查2=============================:{},{},{}",txt,matchType,sensitiveWordList);
|
||||
return sensitiveWordList;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue