任务:排查及修复

This commit is contained in:
luying
2021-11-17 18:09:03 +08:00
parent 2b157c9ef4
commit 08fffc2b54
5 changed files with 24 additions and 21 deletions

View File

@@ -287,6 +287,7 @@ export class CreateHeroes extends UpdateHeroes {
// 皮肤使用初始加载进内存的数据
let skins = await this.getSkinsOfThisHero(hid, { ...skinInfo, _id: new SkinModel()._id }, false);
initHeroInfos.push({ ...heroInfo, skins, _id: new HeroModel()._id });
this.heroNum ++;
}
// 武将使用初始加载数据插入
this.resultHeroes = await HeroModel.insertHeroes(this.roleId, this.roleName, this.serverId, initHeroInfos);
@@ -310,6 +311,7 @@ export class CreateHeroes extends UpdateHeroes {
let model = new SkinModel();
let skins = await this.getSkinsOfThisHero(hid, { ...skinInfo, _id: model._id }, true);
heroeInfos.push({ ...heroInfo, skins, _id: new HeroModel()._id});
this.heroNum ++;
}
this.resultHeroes = await HeroModel.insertHeroes(this.roleId, this.roleName, this.serverId, heroeInfos);
}