任务:修复远征和pvp任务达成
This commit is contained in:
@@ -14,7 +14,7 @@ import { getAp, setAp } from '../../../services/actionPointService';
|
|||||||
import { STATUS } from '../../../consts/statusCode';
|
import { STATUS } from '../../../consts/statusCode';
|
||||||
import { resResult } from '../../../pubUtils/util';
|
import { resResult } from '../../../pubUtils/util';
|
||||||
import { checkBattleHeroes, roleLevelup } from '../../../services/normalBattleService';
|
import { checkBattleHeroes, roleLevelup } from '../../../services/normalBattleService';
|
||||||
import { checkTaskWithWar, checkTask } from '../../../services/taskService';
|
import { checkTask, checkTaskInBattleEnd } from '../../../services/taskService';
|
||||||
|
|
||||||
export default function(app: Application) {
|
export default function(app: Application) {
|
||||||
return new ExpeditionBattleHandler(app);
|
return new ExpeditionBattleHandler(app);
|
||||||
@@ -270,7 +270,7 @@ export class ExpeditionBattleHandler {
|
|||||||
// 更新下一关状态
|
// 更新下一关状态
|
||||||
await ExpeditionWarRecordModel.updateStatus(expeditionCode, expeditionId + 1, EXPEDITION_WAR_RECORD_STATUS.WAITING);
|
await ExpeditionWarRecordModel.updateStatus(expeditionCode, expeditionId + 1, EXPEDITION_WAR_RECORD_STATUS.WAITING);
|
||||||
}
|
}
|
||||||
await checkTaskWithWar(roleId, sid, funcs, TASK_TYPE.BATTLE_WITH_HERO, battleId, dbHeroes, 1, star);
|
await checkTaskInBattleEnd(roleId, sid, funcs, battleId, dbHeroes, star);
|
||||||
|
|
||||||
return resResult(STATUS.SUCCESS, {
|
return resResult(STATUS.SUCCESS, {
|
||||||
expeditionCode, expeditionId,
|
expeditionCode, expeditionId,
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ export async function checkTaskInPvpEnd(roleId: string, sid: string, funcs: numb
|
|||||||
await checkTask(roleId, sid, funcs, TASK_TYPE.PVP_WIN_SERIES, 0, false, {});
|
await checkTask(roleId, sid, funcs, TASK_TYPE.PVP_WIN_SERIES, 0, false, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
await checkTask(roleId, sid, funcs, TASK_TYPE.PVP, 0, false, { heroScores });
|
await checkTask(roleId, sid, funcs, TASK_TYPE.PVP_HERO_SCORE, 0, false, { heroScores });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user