活动:上上签七天满重置修复

This commit is contained in:
luying
2022-06-15 12:18:36 +08:00
parent ef36434ca5
commit c6c36e584b

View File

@@ -132,12 +132,11 @@ export class RechargeMoneyData extends ActivityBase {
private resetPool() {
let beforeNums = this.pool.map(cur => cur.getNumBeforeToday);
let min = Math.min(...beforeNums);
let max = Math.max(...beforeNums);
if(max != 0 && max == min) { // 当所有奖池都抽过一遍的时候,第二天五点,重置
for(let item of this.pool) {
if(item.getNumToday <= 0) item.unsetHasGet();
}
let min = Math.min(...beforeNums);
// 当所有奖池都抽过一遍的时候,第二天五点,重置
for(let item of this.pool) {
if((min == max || item.getNumBeforeToday < max) && item.getNumToday <= 0) item.unsetHasGet();
}
}