排行榜:2个月未登录排除
This commit is contained in:
@@ -4,6 +4,7 @@ import { RoleUpdate, RoleType } from "../db/Role";
|
||||
import { reduceCe } from "../pubUtils/util";
|
||||
import { GuildUpdateParam } from "../db/Guild";
|
||||
import { HeroType, HeroUpdate } from "../db/Hero";
|
||||
import { getSeconds } from "../pubUtils/timeUtil";
|
||||
|
||||
// 排行榜返回玩家值
|
||||
export class RankParam {
|
||||
@@ -16,6 +17,7 @@ export class RankParam {
|
||||
spine: number = EXTERIOR.EXTERIOR_APPEARANCE;
|
||||
title: number = 1;
|
||||
ce: number = 0;
|
||||
updatedAt: number = 0;
|
||||
|
||||
constructor(role: RoleUpdate, fromDb: boolean) {
|
||||
if(role.roleName) this.roleName = role.roleName;
|
||||
@@ -33,6 +35,7 @@ export class RankParam {
|
||||
this.ce = role.ce;
|
||||
}
|
||||
}
|
||||
if(role.updatedAt) this.updatedAt = getSeconds(role.updatedAt);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user