排行榜:总览
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user