秘境:首通信息

This commit is contained in:
luying
2021-09-07 17:31:21 +08:00
parent dd607934f7
commit 8c93cd1eba
10 changed files with 143 additions and 10 deletions
@@ -13,6 +13,7 @@ import { accomplishTask } from '../pubUtils/taskUtil';
import { RScriptRecordModel } from '../db/RScriptRecord';
import { setAp } from './actionPointService';
import { resResult } from '../pubUtils/util';
import { LineupParam } from '../domain/rank';
export async function roleLevelup(type: KING_EXP_RATIO_TYPE, roleId: string, kingExp: number = 0, session: BackendSession) {
const serverId = session.get('serverId');
@@ -82,7 +83,7 @@ export async function roleLevelup(type: KING_EXP_RATIO_TYPE, roleId: string, kin
export async function checkBattleHeroes(roleId: string, seqIds: Array<number> = []) {
let heroes: number[] = [];
let heroes: number[] = [], lineup: LineupParam[] = [];
let flag = true;
// if (seqIds.length <= 0) flag = false;
@@ -94,8 +95,9 @@ export async function checkBattleHeroes(roleId: string, seqIds: Array<number> =
flag = false; break;
}
heroes.push(hero.hid);
lineup.push(new LineupParam(hero));
}
return { isOK: flag, heroes };
return { isOK: flag, heroes, seqIds, lineup };
}
export async function checkBattleHeroesByHid(roleId: string, heroes: Array<number> = []) {