团购:debug接口
This commit is contained in:
@@ -88,8 +88,8 @@ 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.beginTime = moment(activityData.beginTime).startOf('d').add(REFRESH_TIME, 'h').valueOf();
|
||||
this.endTime = moment(activityData.endTime).startOf('d').add(REFRESH_TIME, 'h').valueOf();
|
||||
this.todayIndex = deltaDays(moment(this.beginTime).toDate(), new Date) + 1;
|
||||
|
||||
break;
|
||||
|
||||
@@ -37,7 +37,7 @@ class GroupShopTimer {
|
||||
sum: number; // 如果次数不足sum次则强行设成sum次
|
||||
|
||||
constructor(beginTime: number, id: number, data: GroupShopTimerInDb) {
|
||||
this.time = beginTime + data.time * 60 * 1000;
|
||||
this.time = beginTime + data.time * 60 * 60 * 1000;
|
||||
this.sum = data.sum;
|
||||
this.itemId = id;
|
||||
}
|
||||
@@ -98,7 +98,7 @@ class GroupShopItem {
|
||||
}
|
||||
|
||||
setPlayerCnt(cnt: number) {
|
||||
this.hasBoughtCnt += cnt;
|
||||
this.hasBoughtCnt = cnt;
|
||||
}
|
||||
|
||||
checkBuyCnt(buyCnt: number) {
|
||||
|
||||
Reference in New Issue
Block a user