From 0ea0759be2f809b16b5a03f033c2324ddf4ead36 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 13 Jan 2022 16:28:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=9B=E5=9B=A2=EF=BC=9A=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E5=86=9B=E5=9B=A2=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/guildService.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/game-server/app/services/guildService.ts b/game-server/app/services/guildService.ts index 072eddb71..ee35317a6 100644 --- a/game-server/app/services/guildService.ts +++ b/game-server/app/services/guildService.ts @@ -114,6 +114,10 @@ export async function joinGuild(code: string, guildName: string, lv: number, rol if (sid) { await addRoleToGuildChannel(roleId, sid, code); await pinus.app.rpc.connector.connectorRemote.setOtherUserGuildSession.toServer(sid,[{ roleId, userGuild }]); + pinus.app.channelService.pushMessageByUids('onMemberJoinGuild', resResult(STATUS.SUCCESS, { + hasGuild: true, + code: code + }), [{ uid: roleId, sid }]); session.set('guildCode', code); let auctionInfo = await getAuction(code, session); pinus.app.channelService.pushMessageByUids('onAuctionUpdate', resResult(STATUS.SUCCESS, auctionInfo), [{ uid: roleId, sid }]);