活动:修复签到的todayIndex

This commit is contained in:
luying
2021-12-01 20:36:33 +08:00
parent f2bb00637b
commit 0e2baca704

View File

@@ -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));
}