日志:记录重生数据
This commit is contained in:
@@ -24,6 +24,7 @@ import { calculateCeWithHero } from '../../../services/playerCeService';
|
||||
import { SchoolModel } from '../../../db/School';
|
||||
import { SkinModel } from '../../../db/Skin';
|
||||
import { RoleCeModel } from '../../../db/RoleCe';
|
||||
import { saveRebirthLog } from '../../../pubUtils/logUtil';
|
||||
|
||||
export default function (app: Application) {
|
||||
new HandlerService(app, {});
|
||||
@@ -612,6 +613,7 @@ export class HeroHandler {
|
||||
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);
|
||||
saveRebirthLog(session, hero);
|
||||
|
||||
const heroResult = new HeroParam(curHero);
|
||||
return resResult(STATUS.SUCCESS, { curHero: heroResult, curJewels, goods });
|
||||
|
||||
Reference in New Issue
Block a user