排行榜:虚位以待
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user