活动:修复每日特惠礼包刷新时间
This commit is contained in:
@@ -57,9 +57,6 @@ export abstract class ActivityBase {
|
||||
this.groupId = activityData.groupId;
|
||||
this.delayDay = activityData.delayDay ? activityData.delayDay : 0;
|
||||
this.hideDayByServer = activityData.hideDayByServer||0;
|
||||
this.beginTime = moment(activityData.beginTime).add(this.delayDay, 'd').valueOf();
|
||||
this.endTime = moment(activityData.endTime).add(this.delayDay, 'd').valueOf();
|
||||
this.todayIndex = deltaDays(moment(this.beginTime).toDate(), new Date) + 1;
|
||||
this.roundIndex = 1;
|
||||
this.name = activityData.name;
|
||||
this.isEnable = activityData.isEnable;
|
||||
@@ -91,6 +88,10 @@ export abstract class ActivityBase {
|
||||
break;
|
||||
}
|
||||
case ACTIVITY_TIME_TYPE.DATE_TIME: {
|
||||
this.beginTime = moment(activityData.beginTime).add(this.delayDay, 'd').startOf('d').add(REFRESH_TIME, 'h').valueOf();
|
||||
this.endTime = moment(activityData.endTime).add(this.delayDay, 'd').startOf('d').add(REFRESH_TIME, 'h').valueOf();
|
||||
this.todayIndex = deltaDays(moment(this.beginTime).toDate(), new Date) + 1;
|
||||
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
||||
Reference in New Issue
Block a user