团购:debug接口

This commit is contained in:
luying
2022-10-09 17:18:26 +08:00
parent 1f196a5d36
commit a88d8160cd
8 changed files with 90 additions and 12 deletions

View File

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

View File

@@ -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) {