活动:修改老接口

This commit is contained in:
qiaoxin
2021-05-31 14:40:09 +08:00
parent cb7c930d46
commit 45126d296f
3 changed files with 53 additions and 70 deletions
@@ -59,11 +59,11 @@ export class DailyRMBGiftsData extends ActivityBase {
}
}
if (endTime) {//DAILYRMBGIFTS_DAYS天内有购买过一次性礼包结束时间
// if (moment(new Date()).toDate() < endTime) {
// for (let item of this.list) {
// item.isBuy = true;
// }
// }
if (new Date() < endTime) {
for (let item of this.list) {
item.isBuy = true;
}
}
this.receiveCount = deltaDays(new Date, endTime) + (isOver ? 0 : 1);
}
}