fix bug 升级更新错误

This commit is contained in:
luying
2020-12-14 21:10:35 +08:00
parent 763b61b867
commit 2a268b2158
4 changed files with 29 additions and 21 deletions
@@ -62,6 +62,7 @@ export async function calPlayerCeAndSave(sid: string, roleId: string, heros: Arr
for (let hero of heros) {
let incHeroCe = calPlayerCe(hero, type, args);
incPlayerCe += incHeroCe;
console.log('*******', JSON.stringify(hero))
await hero.save();
pushHeros.push({
hid: hero.hid,