修改debug模式开关读取地点
This commit is contained in:
@@ -2,9 +2,8 @@ import {Application, RouteRecord, FrontendOrBackendSession, HandlerCallback, pin
|
||||
// import { checkEvent } from '../../../services/eventSercive';
|
||||
import { refresh } from '../../../services/refreshService';
|
||||
import { checkPrivateChat, checkGuildChat, checkOtherChat, checkRoleName, checkGuildName } from "../../../services/sdkService";
|
||||
import { resResult, checkWhiteList, genCode } from "../../../pubUtils/util";
|
||||
import { resResult, checkWhiteList, genCode, isCheckWord } from "../../../pubUtils/util";
|
||||
import { BLOCK_TYPE, CHANNEL_PREFIX, MSG_TYPE, PUSH_ROUTE, STATUS } from "../../../consts";
|
||||
import { SERVER_DEBUG_MODE } from "../../../pubUtils/dicParam";
|
||||
import { nowSeconds } from "../../../pubUtils/timeUtil";
|
||||
import { getServerMainten } from "../../../services/gmService";
|
||||
import { errlogger } from "../../../util/logger";
|
||||
@@ -105,7 +104,7 @@ Filter.prototype.before = async function (routeRecord: RouteRecord, msg: any, se
|
||||
}
|
||||
|
||||
let hasBlockWords = false;
|
||||
if(SERVER_DEBUG_MODE.CHECK_WORD == 1) {
|
||||
if(isCheckWord()) {
|
||||
switch(routeRecord.route) {
|
||||
case 'chat.chatHandler.sendPrivateMessage':
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user