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);