初始:修复提前初始远征数据bug

This commit is contained in:
luying
2021-06-24 15:18:09 +08:00
parent de89b01886
commit bdd7edaeaf
6 changed files with 28 additions and 21 deletions

View File

@@ -20,6 +20,7 @@ import { checkTaskWithHero, checkTask, checkTaskWithArgs, checkActivityTask } fr
import { getGoldObject, getCoinObject } from '../../../pubUtils/itemUtils';
import { RScriptRecordModel } from '../../../db/RScriptRecord';
import { checkPvp } from '../../../services/pvpService';
import { pushData } from '../../../services/connectorService';
export default function (app: Application) {
return new RoleHandler(app);
@@ -63,6 +64,7 @@ export class RoleHandler {
await RScriptRecordModel.setScript(roleId, battleId, warInfo.warType, 2, SCRIPT.SCRIPT_NAME);
await checkPvp(role);
return resResult(STATUS.SUCCESS, {
roleId, roleName, heroes
})