皮肤
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user