修改:战场道具返回使用其他字段
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user