This commit is contained in:
luying
2022-05-10 15:15:00 +08:00
parent e85eae5991
commit 6da4633e89

View File

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