领取奇遇事件

This commit is contained in:
luying
2020-10-10 16:37:57 +08:00
parent 2a62b31797
commit 7047f01cbf
8 changed files with 514 additions and 91 deletions
@@ -131,9 +131,9 @@ export class NormalBattleHandler {
return {code: 202, data: checkResult.msg}
}
dailyNum = { type: checkResult.type, count: checkResult.count, sum: checkResult.sum };
} else if (warInfo.war_type == WAR_TYPE.EVENT) {
} else if (warInfo.warType == WAR_TYPE.EVENT) {
// 记录事件状态
await setBattleStatus(roleId, battleId, isSuccess, battleCode, session.get('eventStatus'));
await setBattleStatus(this.app, session, roleId, battleId, isSuccess, battleCode);
}
let warReward = new WarReward(roleId, roleName, battleId, isSuccess);