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