关卡:每日类型名

This commit is contained in:
luying
2021-11-15 17:14:05 +08:00
parent ff88856e27
commit fd9c567045
2 changed files with 3 additions and 3 deletions

View File

@@ -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
});
}

View File

@@ -745,4 +745,4 @@ export enum THINKING_DATA_MODE_LIST {
BATCH = 'batch',
LOGGING = 'logging',
}
export let THINKING_DATA_MODE = THINKING_DATA_MODE_LIST.LOGGING;
export let THINKING_DATA_MODE = THINKING_DATA_MODE_LIST.DEBUG;