修改天梯接口问题,天梯和挂机已测试

This commit is contained in:
liangtongchuan
2020-10-14 01:16:33 +08:00
parent 7652f63414
commit c06f422297
7 changed files with 60 additions and 21 deletions
@@ -52,7 +52,7 @@ export class NormalBattleHandler {
}
dailyNum = { type: checkResult.type, count: checkResult.count, sum: checkResult.sum };
} else if (warInfo.warType == WAR_TYPE.TOWER) {
let checkResult = await checkTowerWar(roleId, battleId);
let checkResult = await checkTowerWar(roleId, battleId, heroes);
if(checkResult.status) {
return {code: 202, data: checkResult.msg}
}
@@ -138,6 +138,7 @@ export class NormalBattleHandler {
let towerRec = null;
let towerBonus = null;
let towerStatus = null;
let towerReward = null;
if(warInfo.warType == WAR_TYPE.DAILY) {
let checkResult = await checkDailyAndIncrease(roleId, battleId, 1, false);
if(checkResult.status == -1) {
@@ -155,6 +156,7 @@ export class NormalBattleHandler {
towerRec = towerEndResult.data.newRec;
towerBonus = towerEndResult.data.bonusReward;
towerStatus = towerEndResult.data.towerStatus;
towerReward = towerEndResult.data.towerReward;
}
let warReward = new WarReward(roleId, roleName, battleId, isSuccess);
@@ -204,7 +206,7 @@ export class NormalBattleHandler {
code: 200,
data: {
battleCode, battleId, status, towerStatus,
goods: reward, towerBonus,
goods: reward, towerBonus, towerReward,
apJson,
dailyNum
}