From e8f162f7b2e093badaa1c551cd21dafcb5824040 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 11 May 2023 10:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(=E5=90=8E=E5=8F=B0):=20?= =?UTF-8?q?=E5=B0=81=E7=A6=81=E7=8E=A9=E5=AE=B6=E6=97=B6=E8=B8=A2=E5=87=BA?= =?UTF-8?q?=E6=B8=B8=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/gm/handler/gmRoleHandler.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game-server/app/servers/gm/handler/gmRoleHandler.ts b/game-server/app/servers/gm/handler/gmRoleHandler.ts index ab335ec9f..57081a6d3 100644 --- a/game-server/app/servers/gm/handler/gmRoleHandler.ts +++ b/game-server/app/servers/gm/handler/gmRoleHandler.ts @@ -29,6 +29,7 @@ import { JewelModel } from '../../../db/Jewel'; import { RoleCeModel } from '../../../db/RoleCe'; import { setTrainLv } from '../../../services/gmService'; import { ArtifactModel } from '../../../db/Artifact'; +import { roleLeave } from '../../../services/redisService'; let timer: NodeJS.Timer; export default function (app: Application) { @@ -79,6 +80,7 @@ export class GmRoleHandler { 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); + await roleLeave(roleId); } } return resResult(STATUS.SUCCESS);