pvp创建获取
This commit is contained in:
@@ -10,8 +10,8 @@ import { resResult, returnHeroCeRatio, reduceCe } from '../../../pubUtils/util';
|
||||
import { FUNC_OPT_TYPE } from '../../../consts';
|
||||
import { getAp } from '../../../services/actionPointService';
|
||||
import { ItemModel } from '../../../db/Item';
|
||||
import { switchOnFunc } from '../../../services/funcSwitchService';
|
||||
|
||||
import { chackFunOpenWhenLogin } from '../../../services/funcSwitchService';
|
||||
import { eventOnPlayerLvUp } from '../../../services/playerEventService';
|
||||
export default function (app: Application) {
|
||||
return new EntryHandler(app);
|
||||
}
|
||||
@@ -78,7 +78,7 @@ export class EntryHandler {
|
||||
let equips = await EquipModel.findbyRole(role.roleId);
|
||||
let items = await ItemModel.findbyRole(role.roleId);
|
||||
|
||||
|
||||
await chackFunOpenWhenLogin(role, session.get('funcs'));
|
||||
role['heros'] = heros.map(cur => returnHeroCeRatio(cur));
|
||||
role['equips'] = equips;
|
||||
role['consumeGoods'] = items;
|
||||
@@ -86,7 +86,6 @@ export class EntryHandler {
|
||||
role['apJson'] = apJson;
|
||||
role['ce'] = reduceCe(role.ce);
|
||||
|
||||
await switchOnFunc(role.roleId, FUNC_OPT_TYPE.LEVEL_UP, role.lv, session);
|
||||
return resResult(STATUS.SUCCESS, { role });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user