排行榜:总览

This commit is contained in:
luying
2021-09-08 19:40:21 +08:00
parent c3931a3043
commit cb59d0aa96
5 changed files with 22 additions and 22 deletions
+7 -3
View File
@@ -352,13 +352,17 @@ export interface myIdInter {
// 排行榜总览左边的数据
export class GeneralRankParam {
type: number; // 排行榜id
userInfo: RankParam;
userInfo?: RankParam;
num: number;
received: number[];
constructor(type: number, rankInfo: RoleRankInfo, received?: number[]) {
constructor(type: number, rankInfo: RoleRankInfo|GuildRankInfo, general: number, received?: number[]) {
this.type = type;
this.userInfo = pick(rankInfo, ['roleId', 'roleName', 'head', 'frame', 'spine', 'guildName', 'ce', 'title', 'lv']);
if(general == 1) {
if(rankInfo instanceof RoleRankInfo) {
this.userInfo = pick(rankInfo, ['roleId', 'roleName', 'head', 'frame', 'spine', 'guildName', 'ce', 'title', 'lv']);
}
}
this.num = rankInfo.num;
this.received = received;
}