活动:修改活动的时间配置规则
This commit is contained in:
@@ -318,14 +318,6 @@ export class SevenDaysData extends ActivityBase {
|
||||
this.growth = new SevenDaysGrowthData(objData.growth)
|
||||
this.dailyGift = new SevenDaysDailyGiftsData(objData.dailyGift)
|
||||
this.dailyChallenge = new SevenDaysDailyChallengesData(objData.dailyChallenge)
|
||||
|
||||
if (this.type === ACTIVITY_TYPE.SEVEN_DAY) {
|
||||
this.todayIndex = deltaDays(moment(SERVER_OPEN_TIME).startOf('d').toDate(), new Date) + 1;
|
||||
} else if (this.type === ACTIVITY_TYPE.FOURTEEN_DAY) {
|
||||
this.todayIndex = deltaDays(moment(SERVER_OPEN_TIME).startOf('d').toDate(), new Date) + 1 - 7;
|
||||
} else if (this.type === ACTIVITY_TYPE.COMMON_SEVEN_DAY) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
constructor(activityData: ActivityModelType) {
|
||||
|
||||
Reference in New Issue
Block a user