fix 刷新对手无法找到武将
This commit is contained in:
@@ -140,7 +140,7 @@ async function calculateTopFive(role: RoleType, hid: number, ce: number, heroId:
|
||||
} else { // 原来就是最强5人
|
||||
if (ce < topFive[topFive.length - 1].ce) { // 滑出最强
|
||||
let heroes = await HeroModel.getTopHero(role.roleId, 5);
|
||||
topFive = heroes.map(cur => { return { hid: cur.hid, ce: cur.ce } });
|
||||
topFive = heroes.map(cur => { return { hid: cur.hid, ce: cur.ce, hero: cur._id } });
|
||||
} else {
|
||||
topFive[index].ce = ce;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user