获得战报,刷新,领取

This commit is contained in:
mamengke01
2021-01-08 16:16:51 +08:00
parent 099026869a
commit 12f308f0f5
14 changed files with 243 additions and 83 deletions

View File

@@ -11,7 +11,7 @@ import { FUNC_OPT_TYPE } from '../../../consts';
import { getAp } from '../../../services/actionPointService';
import { ItemModel } from '../../../db/Item';
import { chackFunOpenWhenLogin } from '../../../services/funcSwitchService';
import { eventOnPlayerLvUp } from '../../../services/playerEventService';
import { loginRefresh } from '../../../services/playerEventService';
export default function (app: Application) {
return new EntryHandler(app);
}
@@ -77,6 +77,7 @@ export class EntryHandler {
let heros = await HeroModel.findByRole(role.roleId);
let equips = await EquipModel.findbyRole(role.roleId);
let items = await ItemModel.findbyRole(role.roleId);
await loginRefresh(role.roleId);
await chackFunOpenWhenLogin(role, session.get('funcs'));
role['heros'] = heros.map(cur => returnHeroCeRatio(cur));
@@ -86,7 +87,6 @@ export class EntryHandler {
role['apJson'] = apJson;
role['ce'] = reduceCe(role.ce);
role['topFiveCe'] = reduceCe(role.topFiveCe);
return resResult(STATUS.SUCCESS, { role });
}