版署服强制走敏感字验证

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