月卡:修改玩家session

This commit is contained in:
luying
2022-03-09 20:14:02 +08:00
parent 0e10e3e6d3
commit d937679a5d
4 changed files with 12 additions and 22 deletions
@@ -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);
}