diff --git a/game-server/app/servers/connector/handler/entryHandler.ts b/game-server/app/servers/connector/handler/entryHandler.ts index 61a68edf8..a34bd61a0 100644 --- a/game-server/app/servers/connector/handler/entryHandler.ts +++ b/game-server/app/servers/connector/handler/entryHandler.ts @@ -58,7 +58,7 @@ export class EntryHandler { if (connect.isOnline) { // 多地登陆踢下线 if (connect.sid = self.app.getServerId()) { - await kickUser(self.app, `${user.uid}`); + await kickUser(self.app, role.roleId); } else { await self.app.rpc.connector.connectorRemote.remoteLogin.toServer(connect.sid, role.roleId); }