From 0e2baca704e2e93e76e646f1205beba0787b9655 Mon Sep 17 00:00:00 2001 From: luying Date: Wed, 1 Dec 2021 20:36:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=AD=BE=E5=88=B0=E7=9A=84todayIndex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/activityField/signInField.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/domain/activityField/signInField.ts b/shared/domain/activityField/signInField.ts index 6b728f373..0661f0895 100644 --- a/shared/domain/activityField/signInField.ts +++ b/shared/domain/activityField/signInField.ts @@ -97,7 +97,7 @@ export class SignInData extends ActivityBase { if (this.type === ACTIVITY_TYPE.NEW_PLAYER_SIGN_IN) { this.roundIndex = 1; } - this.todayIndex = Math.ceil((moment(date).valueOf() - this.beginTime) / (24 * 60 * 60 * 1000)); + this.todayIndex = Math.ceil((moment().valueOf() - this.beginTime) / (24 * 60 * 60 * 1000)); }