皮肤:获取皮肤缺少推送参数

This commit is contained in:
luying
2022-06-18 15:25:17 +08:00
parent 35a2824597
commit d743bc6d95

View File

@@ -202,6 +202,7 @@ export async function addItems(roleId: string, roleName: string, sid: string, go
let hero = await addSkin(roleId, roleName, role.serverId, sid, skinId, false);
skinInfos.push({ id: skinId, hid: hero? hero.hid: 0, count: 1, inc: 1, reason })
showItems.push({ id: skinId, count: 1 });
if(hero) heroskins.push({ skins: hero.skins, hid: hero.hid });
}
if (!!skinInfos.length) {
pushHeroSkinMsg(heroskins, skinInfos, roleId, sid); // 推送onHeroSkinChange