版署服强制走敏感字验证
parent
0fe4843dac
commit
26990ba05a
|
@ -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 敏感字检测服未开启");
|
||||
|
|
Loading…
Reference in New Issue