🐞 fix(军团活动): 修复诸侯混战城门血条互通问题

This commit is contained in:
luying
2022-10-26 17:17:35 +08:00
parent 31e00b93f3
commit d5d630b765
6 changed files with 30 additions and 30 deletions
@@ -41,8 +41,8 @@ export async function addRoleToGuildChannel(roleId: string, sid: string, guildCo
await addRoleToChannel(roomId, roleId, sid);
}
export async function addRoleToCityChannel(roleId: string, sid: string, cityId: number) {
const roomId = groupRoomId(CHANNEL_PREFIX.CITY, cityId);
export async function addRoleToCityChannel(roleId: string, sid: string, serverId: number, cityId: number) {
const roomId = groupRoomId(CHANNEL_PREFIX.CITY, `${serverId}_${cityId}`);
await addRoleToChannel(roomId, roleId, sid);
}
@@ -76,18 +76,18 @@ export async function leaveWorldChannel(roleId: string, sid: string, serverId: n
await leaveChannel(roomId, roleId, sid);
}
export async function leaveCityChannel(roleId: string, sid: string, cityId: string) {
const roomId = groupRoomId(CHANNEL_PREFIX.CITY, cityId);
export async function leaveCityChannel(roleId: string, sid: string, serverId: number, cityId: string) {
const roomId = groupRoomId(CHANNEL_PREFIX.CITY, `${serverId}_${cityId}`);
await leaveChannel(roomId, roleId, sid);
}
export async function leaveGuildAuctionChannel(roleId: string, sid: string, guildCode: string) {
const roomId = groupRoomId(CHANNEL_PREFIX.CITY, guildCode);
const roomId = groupRoomId(CHANNEL_PREFIX.GUILD_AUCTION, guildCode);
await leaveChannel(roomId, roleId, sid);
}
export async function leaveWorldAuctionChannel(roleId: string, sid: string, serverId: number) {
const roomId = groupRoomId(CHANNEL_PREFIX.CITY, serverId);
const roomId = groupRoomId(CHANNEL_PREFIX.WORLD_AUCTION, serverId);
await leaveChannel(roomId, roleId, sid);
}
@@ -114,8 +114,8 @@ export async function getGuildChannelSid(guildCode: string) {
return channelSid;
}
export async function getCityChannelSid(cityId: number) {
const roomId = groupRoomId(CHANNEL_PREFIX.CITY, cityId);
export async function getCityChannelSid(serverId: number, cityId: number) {
const roomId = groupRoomId(CHANNEL_PREFIX.CITY, `${serverId}_${cityId}`);
const channelSid = await channelServer(roomId);
return channelSid;
}