演武台:boss挑战次数更新

This commit is contained in:
luying
2021-10-18 18:30:34 +08:00
parent ff18340c0f
commit 24510562fa
2 changed files with 22 additions and 27 deletions

View File

@@ -32,7 +32,7 @@ export async function getBossInstanceInfo(guildCode: string, roleId:string, user
// 此处showParamObj一定要放在最前
return { ...showParamObj, warId, ...rankInfo, bossHp, status, bossLv, encourageCnt, encourageMax: dicBossBase.encourageSum,...refObj };
} else {
return showParamObj;
return { ...showParamObj, ...refObj };
}
}
@@ -77,7 +77,7 @@ export function getRanks(ranks: {roleId: string; score: number; time: number; jo
if (roleId == battleRoleId) {
myRank = { roleId, score, rankLv: index + 1 };
}
return {roleId, score, rankLv: index + 1};
return {roleId: battleRoleId, score, rankLv: index + 1};
});
return { ranks: lastRanks, myRank }
}