关闭sdk屏蔽

This commit is contained in:
luying
2022-07-02 14:20:15 +08:00
parent 59954961ee
commit ddc980456b
3 changed files with 10 additions and 3 deletions
@@ -10,6 +10,7 @@ import { errlogger } from "../../../util/logger";
import { gameData } from "../../../pubUtils/data";
import { sendMessageToUser } from "../../../services/pushService";
import { isCheckWord } from "../../../pubUtils/sdkUtil";
import { isDevelopEnv } from "../../../services/utilService";
export function globalFilter(app: Application) {
return new Filter(app);
}
@@ -105,7 +106,7 @@ Filter.prototype.before = async function (routeRecord: RouteRecord, msg: any, se
}
let hasBlockWords = false;
if(isCheckWord()) {
if(isCheckWord(isDevelopEnv())) {
switch(routeRecord.route) {
case 'chat.chatHandler.sendPrivateMessage':
{