排行榜:2个月未登录排除

This commit is contained in:
luying
2021-04-12 09:47:18 +08:00
parent 3e6dbc44fd
commit 985f117d39
2 changed files with 83 additions and 3 deletions
+3
View File
@@ -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);
}
}