🐞 fix(镇念塔): 派遣任务添加参数:刷新次数

This commit is contained in:
luying
2022-11-24 19:01:01 +08:00
parent 9ae13cbc2b
commit 6a871b956a
2 changed files with 2 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ export class TowerBattleHandler {
let refRemainTime = getRemainTime(curTime);
let nextCostGold = getTowerTaskCostGold(newRole.towerTaskReCnt, newRole.towerTaskRefTime);
return resResult(STATUS.SUCCESS, { curTasks: treatTask(curTasks, curTime), costGold, nextCostGold, refRemainTime});
return resResult(STATUS.SUCCESS, { curTasks: treatTask(curTasks, curTime), costGold, nextCostGold, refRemainTime, towerTaskReCnt: newRole.towerTaskReCnt });
}
async sendTaskHero(msg: {batchCode: string, tasks: {taskCode: string, heroes: number[]}[]}, session: BackendSession) {

View File

@@ -146,7 +146,7 @@ export async function getTasks(roleId: string) {
let refRemainTime = getRemainTime(curTime);
let nextCostGold = getTowerTaskCostGold(role.towerTaskReCnt, role.towerTaskRefTime);
return {curTasks: treatTask(curTasks, curTime), refRemainTime, nextCostGold}
return { curTasks: treatTask(curTasks, curTime), refRemainTime, nextCostGold, towerTaskReCnt }
}
function treatPreTasks(tasks: TowerTaskRecType[]) {