皮肤:周边相关功能影响

This commit is contained in:
luying
2021-10-19 14:26:21 +08:00
parent da5a43abba
commit 864f856c1c
16 changed files with 254 additions and 199 deletions
+4 -3
View File
@@ -36,6 +36,7 @@ export async function initPvpInfo(role: RoleType) {
if (item) defCe += item.ce;
heroes.push({
actorId: item?.hid || 0,
skinId: item?.hid || 0,
hero: item?.hero || null,
ce: item?.ce || 0,
dataId: i,
@@ -592,11 +593,11 @@ export async function generMyRecInfo(heroScores: HeroScores[], winStreakNum: num
hid, addScore: 0, plusScore: 0, score: curHeroScore ? curHeroScore.score : 0
});
}
const myHero = await HeroModel.findByHidAndRole(hid, roleId, 'quality star colorStar lv');
let { quality, star, colorStar, lv } = myHero;
const myHero = await HeroModel.findByHidAndRole(hid, roleId, 'quality star colorStar lv skinId');
let { quality, star, colorStar, lv, skinId } = myHero;
myHeroRecords.push({
hid, quality, star, colorStar, lv, damage, heal, underDamage
hid, quality, star, colorStar, lv, damage, heal, underDamage, skinId
});
}