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