月卡:修改玩家session
This commit is contained in:
@@ -70,7 +70,7 @@ export class GmRoleHandler {
|
||||
if(!role) return resResult(STATUS.ROLE_NOT_FOUND);
|
||||
let { isOnline, sid } = await getRoleOnlineInfo(roleId);
|
||||
if(isOnline) {
|
||||
await this.app.rpc.connector.connectorRemote.setOtherUseBlockTypeSession.toServer(sid,[{ roleId, blockType }]);
|
||||
await this.app.rpc.connector.connectorRemote.setOtherUserSession.toServer(sid,[{ roleId, blockType }]);
|
||||
if(blockType == BLOCK_TYPE.BLOCK) { // 踢走
|
||||
await this.app.rpc.connector.connectorRemote.remoteLogin.toServer(sid, roleId, STATUS.BLOCKED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user