军团活动:蛮夷入侵定时任务及推送

This commit is contained in:
luying
2021-03-18 21:07:06 +08:00
parent 2cf3b0ffe0
commit 7e7be94688
11 changed files with 289 additions and 39 deletions

View File

@@ -63,6 +63,12 @@ export async function leaveGuildChannel(roleId: string, sid: string) {
await leaveChannel(roomId, roleId, sid);
}
export async function getWorldChannelSid(serverId: number) {
const roomId = groupRoomId(CHANNEL_PREFIX.WORLD, serverId);
const channelSid = await channelServer(roomId);
return channelSid;
}
export async function getGuildChannelSid(guildCode: string) {
const roomId = groupRoomId(CHANNEL_PREFIX.GUILD, guildCode);
const channelSid = await channelServer(roomId);