战力:修复重生的时候百家学宫没有更新的bug

This commit is contained in:
luying
2022-06-14 14:59:32 +08:00
parent 065e2f7902
commit 5f8ac62f7e
3 changed files with 6 additions and 2 deletions
@@ -21,6 +21,7 @@ import { createHero, createHeroes } from '../../../services/role/createHero';
import { CheckMeterial } from '../../../services/role/checkMaterial';
import { HeroParam } from '../../../domain/roleField/hero';
import { calculateCeWithHero } from '../../../services/playerCeService';
import { SchoolModel } from '../../../db/School';
export default function (app: Application) {
new HandlerService(app, {});
@@ -651,7 +652,8 @@ export class HeroHandler {
}
}
let { curHero } = await calculateCeWithHero(HERO_SYSTEM_TYPE.REBIRTH, roleId, serverId, sid, hid, initInfo, { });
let school = await SchoolModel.findByHid(roleId, hid);
let { curHero } = await calculateCeWithHero(HERO_SYSTEM_TYPE.REBIRTH, roleId, serverId, sid, hid, initInfo, { schoolId: school?.schoolId });
let goods = await addItems(roleId, roleName, sid, consumes, ITEM_CHANGE_REASON.REBIRTH);
const heroResult = new HeroParam(curHero);