演武台:修复显示
This commit is contained in:
@@ -25,7 +25,7 @@ export async function getBossInstanceInfo(guildCode: string, roleId:string, user
|
|||||||
if(!guild) guild = await GuildModel.findByCode(guildCode, null, 'code refOpenBossTime openBossCnt');
|
if(!guild) guild = await GuildModel.findByCode(guildCode, null, 'code refOpenBossTime openBossCnt');
|
||||||
|
|
||||||
let refObj = await getRefBossCnt(guild, userGuild); // 刷新次数
|
let refObj = await getRefBossCnt(guild, userGuild); // 刷新次数
|
||||||
let showParamObj = await getLastBossInstance(bossInstance, guildCode, roleId);
|
let showParamObj = await getLastBossInstance(guildCode, roleId);
|
||||||
if(bossInstance) {
|
if(bossInstance) {
|
||||||
let { warId, ranks, bossHp, bossLv, status, encourageCnt } = bossInstance;
|
let { warId, ranks, bossHp, bossLv, status, encourageCnt } = bossInstance;
|
||||||
let dicBossBase = gameData.bossBaseByBossLv.get(bossLv);
|
let dicBossBase = gameData.bossBaseByBossLv.get(bossLv);
|
||||||
@@ -83,8 +83,7 @@ export function getRanks(ranks: {roleId: string; score: number; time: number; jo
|
|||||||
return { ranks: lastRanks, myRank }
|
return { ranks: lastRanks, myRank }
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getLastBossInstance(bossInstance: BossInstanceType, guildCode: string, roleId: string) {
|
export async function getLastBossInstance(guildCode: string, roleId: string) {
|
||||||
if(bossInstance && bossInstance.status == GUILD_BOSS_STATUS.OPEN) return {}
|
|
||||||
|
|
||||||
let lastBossInstance = await BossInstanceModel.findLastOverBossInstance(guildCode);
|
let lastBossInstance = await BossInstanceModel.findLastOverBossInstance(guildCode);
|
||||||
if(lastBossInstance) {
|
if(lastBossInstance) {
|
||||||
|
|||||||
Reference in New Issue
Block a user