From 92a5035ad64a5b30d0ee7122320ff0330d4c4c7d Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 12 Apr 2021 11:13:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E8=A1=8C=E6=A6=9C=EF=BC=9Afix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/rank.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shared/domain/rank.ts b/shared/domain/rank.ts index 25264cee6..6919d67ba 100644 --- a/shared/domain/rank.ts +++ b/shared/domain/rank.ts @@ -35,7 +35,13 @@ export class RankParam { this.ce = role.ce; } } - if(role.updatedAt) this.updatedAt = getSeconds(role.updatedAt); + if(role.updatedAt) { + if(typeof role.updatedAt == 'number') { + this.updatedAt = role.updatedAt; + } else { + this.updatedAt = getSeconds(role.updatedAt); + } + } } }