关卡:每日类型名

This commit is contained in:
luying
2021-11-15 17:14:15 +08:00
parent ff88856e27
commit fd9c567045
2 changed files with 3 additions and 3 deletions
@@ -21,7 +21,7 @@ export async function getDailyBattleList(role: RoleType) {
let dicDaily = gameData.daily;
let result = new Array();
for(let {dailyType: type, timesPerDay, timesCanBuy } of dicDaily) {
for(let {dailyType: type, timesPerDay, timesCanBuy, name } of dicDaily) {
let refreshResult = await DailyRecordModel.refreshRecord(roleId, type);
let wars: {battleId: number, cost: number, star: number, status: number}[] = new Array();
let dicDailyWar = gameData.dailyWarByType.get(type);
@@ -31,7 +31,7 @@ export async function getDailyBattleList(role: RoleType) {
}
let checkDailyResult = await getDailyNum(refreshResult, timesPerDay, timesCanBuy);
result.push({
type, ...checkDailyResult,
type, name, ...checkDailyResult,
wars
});
}