版署服强制走敏感字验证

master_banhao
DESKTOP-C3M45P4\dengdan 2024-12-20 19:13:38 +08:00
parent 0fe4843dac
commit 26990ba05a
1 changed files with 6 additions and 6 deletions

View File

@ -48,9 +48,9 @@ public class SensitivewordFilter {
* @version 1.0
*/
private static Set<String> getSensitiveWord(String txt, int matchType) {
if (GameApplication.serverProperties.isDebug()){
return new HashSet<>();
}
// if (GameApplication.serverProperties.isDebug()){
// return new HashSet<>();
// }
Object o = RedisUtil.getInstence().get(SENSIT_WORD_FILTER_KEY);
if (o == null) {
LOGGER.info("getSensitiveWord 敏感字检测服未开启");
@ -124,9 +124,9 @@ public class SensitivewordFilter {
* @version 1.0
*/
private static boolean isContaintSensitiveWordThrift(String userName, int type) throws ErrorCodeException {
if (GameApplication.serverProperties.isDebug()){
return false;
}
// if (GameApplication.serverProperties.isDebug()){
// return false;
// }
Object o = RedisUtil.getInstence().get(SENSIT_WORD_FILTER_KEY);
if (o == null) {
LOGGER.error("getSensitiveWord 敏感字检测服未开启");