聊天:精炼时推送装备 id
This commit is contained in:
@@ -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<EPlace>) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user