登录:修复踢人bug
This commit is contained in:
@@ -58,7 +58,7 @@ export class EntryHandler {
|
|||||||
|
|
||||||
if (connect.isOnline) { // 多地登陆踢下线
|
if (connect.isOnline) { // 多地登陆踢下线
|
||||||
if (connect.sid = self.app.getServerId()) {
|
if (connect.sid = self.app.getServerId()) {
|
||||||
await kickUser(self.app, `${user.uid}`);
|
await kickUser(self.app, role.roleId);
|
||||||
} else {
|
} else {
|
||||||
await self.app.rpc.connector.connectorRemote.remoteLogin.toServer(connect.sid, role.roleId);
|
await self.app.rpc.connector.connectorRemote.remoteLogin.toServer(connect.sid, role.roleId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user