敏感字服兼容

back_recharge
jiahuiwen 2021-10-22 16:22:55 +08:00
parent 8bdd217c8a
commit c183c40c81
1 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ public class SensitivewordFilter {
Object o = RedisUtil.getInstence().get(SENSIT_WORD_FILTER_KEY);
if (o == null) {
LOGGER.info("getSensitiveWord 敏感字检测服未开启");
return false;
return true;
}
String address = (String) o;
String[] split = address.split("\\:");
@ -131,13 +131,13 @@ public class SensitivewordFilter {
try {
rPCClient = ClientAdapterPo.getClientAdapterPo(serviceKey);
if (rPCClient == null) {
return false;
return true;
}
boolean result = rPCClient.getClient().isContaintSensitiveWord(userName, type);
return result;
} catch (Exception e) {
LOGGER.info("getSensitiveWord callback=>",e);
return false;
return true;
}finally {
if (rPCClient != null){
rPCClient.returnObject(serviceKey);