世界消息

This commit is contained in:
luying
2021-01-22 09:46:40 +08:00
parent b2785450ac
commit 65320fb9e0
3 changed files with 65 additions and 21 deletions

View File

@@ -78,7 +78,8 @@ export class EntryHandler {
// put user into channel
// console.log(JSON.stringify(self.app.rpc.battle))
// await self.app.rpc.battle.battleRemote.add.route(session)(role.roleId, self.app.get('serverId'), role.serverId, true);
// let users = await self.app.rpc.chat.chatRemote.add.route(session)(role.roleId, self.app.get('serverId'), rid, true);
await self.app.rpc.chat.chatRemote.addWorldChannel.route(session)(role.roleId, serverId);
let heros = await HeroModel.findByRole(role.roleId);
let equips = await EquipModel.findbyRole(role.roleId);
let items = await ItemModel.findbyRole(role.roleId);
@@ -118,7 +119,7 @@ export class EntryHandler {
let channel = channelService.getChannel(roleId, true);
channel.leave(roleId, sid);
// this.app.rpc.battle.battleRemote.kick.route(session)(roleId, this.app.get('serverId'), serverId);
// this.app.rpc.chat.chatRemote.kick.route(session, true)(session.uid, this.app.get('serverId'), session.get('rid'));
this.app.rpc.chat.chatRemote.kickWorldChannel.route(session, true)(roleId, serverId);
}