加密:增加可以选择不加密

This commit is contained in:
luying
2022-07-29 11:26:28 +08:00
parent 2806fdd9b1
commit 45802ba9e1
6 changed files with 15 additions and 6 deletions
+3 -1
View File
@@ -5,6 +5,8 @@ import { getCityChannelSid, getGuildChannelSid, getWorldChannelSid, groupRoomId
import { getAllOnlineRoles, getRoleOnlineInfo } from "./redisService";
import { errlogger, infologger } from '../util/logger';
import { MsgEncrypt } from "../pubUtils/sysUtil";
import { isSkipEncode } from "../pubUtils/sdkUtil";
import { isDevelopEnv } from "./utilService";
export async function sendMessageToAllWithSuc(route: string, data: any, filterCb?: ({ lv, topLineupCe }) => boolean) {
await sendMessageToAll(route, resResult(STATUS.SUCCESS, data), filterCb);
@@ -181,7 +183,7 @@ function encryptMsg(event: string, json: any) {
}
function checkNotEncryptRoute(event: string) {
return [
return isSkipEncode(isDevelopEnv()) || [
PUSH_ROUTE.PUSH_CURRENT_TIME,
PUSH_ROUTE.RACE_START,
PUSH_ROUTE.GUILD_ACTIVITY_END,