修改:战场道具返回使用其他字段

This commit is contained in:
luying
2020-12-25 16:19:08 +08:00
parent 4e83d1aed9
commit cc7b0fb276
3 changed files with 4 additions and 4 deletions
@@ -722,7 +722,7 @@ export class ComBattleHandler {
const goods = await handleFixedReward(roleId, roleName, sid, roleSt.fixReward, 1); const goods = await handleFixedReward(roleId, roleName, sid, roleSt.fixReward, 1);
let actordata = await roleLevelup(roleId, warInfo.kingExp, this.app, session);// 主公升级经验 let actordata = await roleLevelup(roleId, warInfo.kingExp, this.app, session);// 主公升级经验
return resResult(STATUS.SUCCESS, { goods, ...actordata, teamInfo: {status, teamCode, roleStatus, bossHpArr} }); return resResult(STATUS.SUCCESS, { battleGoods: goods, ...actordata, teamInfo: {status, teamCode, roleStatus, bossHpArr} });
} }
async getComBtlStatus(msg: {teamCode: string}, session: BackendSession) { async getComBtlStatus(msg: {teamCode: string}, session: BackendSession) {
@@ -273,7 +273,7 @@ export class ExpeditionBattleHandler {
expeditionCode, expeditionId, expeditionCode, expeditionId,
battleCode, battleId, battleCode, battleId,
battleStatus: expeditionWarRecord.battleStatus, battleStatus: expeditionWarRecord.battleStatus,
goods: reward, battleGoods: reward,
apJson, apJson,
expeditionPoint, expeditionPoint,
...actordata ...actordata
@@ -254,7 +254,7 @@ export class NormalBattleHandler {
// towerStatus: false-本层未通过, true-本层已通过 // towerStatus: false-本层未通过, true-本层已通过
return resResult(STATUS.SUCCESS, { return resResult(STATUS.SUCCESS, {
battleCode, battleId, status, battleCode, battleId, status,
goods: reward, battleGoods: reward,
apJson, apJson,
towerStatus, dailyNum, dungeonNum, towerStatus, dailyNum, dungeonNum,
...actordata ...actordata
@@ -323,7 +323,7 @@ export class NormalBattleHandler {
return resResult(STATUS.SUCCESS, { return resResult(STATUS.SUCCESS, {
battleId, count, battleId, count,
goods: result, battleGoods: result,
apJson, apJson,
dailyNum, dungeonNum, dailyNum, dungeonNum,
...actordata ...actordata