From 4340f9a0b03ddcaff5290dfbf0e5dd61829b7411 Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Thu, 18 Mar 2021 11:11:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8A=E5=A4=A9=EF=BC=9A=E7=B2=BE=E7=82=BC?= =?UTF-8?q?=E6=97=B6=E6=8E=A8=E9=80=81=E8=A3=85=E5=A4=87=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/sysChatService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/game-server/app/services/sysChatService.ts b/game-server/app/services/sysChatService.ts index dbb934837..fc5fe24b7 100644 --- a/game-server/app/services/sysChatService.ts +++ b/game-server/app/services/sysChatService.ts @@ -1,3 +1,4 @@ +import { EquipType } from './../db/Equip'; import { EPlace, HeroType } from '../db/Hero'; import { GuildType } from '../db/Guild'; @@ -79,7 +80,9 @@ export async function pushGuildBossSucMsg(roleId: string, roleName: string, guil } export async function pushEquipRefineSucMsg(roleId: string, roleName: string, serverId: number, eplace: Partial) { - const data = pick(eplace, ['id', 'lv', 'refineLv']); + const { id, lv, refineLv, equip } = eplace; + const { id: equipId } = equip as EquipType; + const data = { id, lv, refineLv, equipId }; const content = JSON.stringify({ roleId, roleName, eplace: data }); const msgData = await createGroupMsg(roleId, roleName, CHANNEL_PREFIX.SYS, `${serverId}`, MSG_TYPE.RICH_TEXT, MSG_SOURCE.EQUIP_REFINE_SUC, content, null, null); await pushGroupMsgToRoom(msgData);