关卡:每日类型名
This commit is contained in:
@@ -21,7 +21,7 @@ export async function getDailyBattleList(role: RoleType) {
|
|||||||
let dicDaily = gameData.daily;
|
let dicDaily = gameData.daily;
|
||||||
|
|
||||||
let result = new Array();
|
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 refreshResult = await DailyRecordModel.refreshRecord(roleId, type);
|
||||||
let wars: {battleId: number, cost: number, star: number, status: number}[] = new Array();
|
let wars: {battleId: number, cost: number, star: number, status: number}[] = new Array();
|
||||||
let dicDailyWar = gameData.dailyWarByType.get(type);
|
let dicDailyWar = gameData.dailyWarByType.get(type);
|
||||||
@@ -31,7 +31,7 @@ export async function getDailyBattleList(role: RoleType) {
|
|||||||
}
|
}
|
||||||
let checkDailyResult = await getDailyNum(refreshResult, timesPerDay, timesCanBuy);
|
let checkDailyResult = await getDailyNum(refreshResult, timesPerDay, timesCanBuy);
|
||||||
result.push({
|
result.push({
|
||||||
type, ...checkDailyResult,
|
type, name, ...checkDailyResult,
|
||||||
wars
|
wars
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -745,4 +745,4 @@ export enum THINKING_DATA_MODE_LIST {
|
|||||||
BATCH = 'batch',
|
BATCH = 'batch',
|
||||||
LOGGING = 'logging',
|
LOGGING = 'logging',
|
||||||
}
|
}
|
||||||
export let THINKING_DATA_MODE = THINKING_DATA_MODE_LIST.LOGGING;
|
export let THINKING_DATA_MODE = THINKING_DATA_MODE_LIST.DEBUG;
|
||||||
Reference in New Issue
Block a user