diff --git a/game-server/app/services/rankService.ts b/game-server/app/services/rankService.ts index e0ab692e5..ce50a2477 100644 --- a/game-server/app/services/rankService.ts +++ b/game-server/app/services/rankService.ts @@ -1223,8 +1223,8 @@ export async function getRankInHandler(redisKey: REDIS_KEY, type: RANK_TYPE, key myRank = await r.generMyRankWithRole(roleId, 0, 0, role); } } - if(type == RANK_TYPE.LADDER) { - ranks = completeLadderRanks(ranks); - } + // if(type == RANK_TYPE.LADDER) { + // ranks = completeLadderRanks(ranks); + // } return { ranks, myRank } } \ No newline at end of file diff --git a/shared/domain/rank.ts b/shared/domain/rank.ts index 5f6cd3be2..53bf17dd6 100644 --- a/shared/domain/rank.ts +++ b/shared/domain/rank.ts @@ -222,6 +222,7 @@ export class RoleAndGuildRankInfo { userInfo?: RankParam & { roleId: string }; lineup?: LineupParam[]; guildInfo?: GuildRankParam & { code: string, active?: number }; + hasUser: boolean = false; constructor(rank: number, num: number) { this.rank = rank; @@ -231,11 +232,13 @@ export class RoleAndGuildRankInfo { setUserInfo(role: RoleRankInfo) { this.userInfo = pick(role, ['roleId', 'roleName', 'head', 'frame', 'spine', 'lv', 'title', 'guildName', 'ce', 'topLineupCe']); this.lineup = role.lineup; + this.hasUser = true; } setGuildInfo(guild: GuildRankInfo) { this.guildInfo = pick(guild, ['code', 'icon', 'name', 'leader', 'guildCe', 'lv', 'memberCnt']); this.guildInfo.active = guild.num1; + this.hasUser = true; } isMyInfo(myId: myIdInter) {