加密:增加可以选择不加密
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user