diff --git a/game-server/app/servers/guild/handler/cityActivityHandler.ts b/game-server/app/servers/guild/handler/cityActivityHandler.ts index c78b1d06c..60d2d600e 100644 --- a/game-server/app/servers/guild/handler/cityActivityHandler.ts +++ b/game-server/app/servers/guild/handler/cityActivityHandler.ts @@ -100,7 +100,7 @@ export class CityActivityHandler { let historyCity = await getHistoryCity(roleId); if (historyCity) { - await leaveCityChannel(roleId, sid, historyCity); + await leaveCityChannel(roleId, sid, `${historyCity}`); } await addRoleToCityChannel(roleId, sid, cityId); await setHistoryCity(roleId, cityId); diff --git a/game-server/app/services/chatChannelService.ts b/game-server/app/services/chatChannelService.ts index 83a6e72cf..5ee113ff6 100644 --- a/game-server/app/services/chatChannelService.ts +++ b/game-server/app/services/chatChannelService.ts @@ -71,7 +71,7 @@ export async function leaveWorldChannel(roleId: string, sid: string, serverId: n await leaveChannel(roomId, roleId, sid); } -export async function leaveCityChannel(roleId: string, sid: string, cityId: number) { +export async function leaveCityChannel(roleId: string, sid: string, cityId: string) { const roomId = groupRoomId(CHANNEL_PREFIX.CITY, cityId); await leaveChannel(roomId, roleId, sid); }