活动:上上签七天满重置修复
This commit is contained in:
@@ -132,12 +132,11 @@ export class RechargeMoneyData extends ActivityBase {
|
|||||||
|
|
||||||
private resetPool() {
|
private resetPool() {
|
||||||
let beforeNums = this.pool.map(cur => cur.getNumBeforeToday);
|
let beforeNums = this.pool.map(cur => cur.getNumBeforeToday);
|
||||||
let min = Math.min(...beforeNums);
|
|
||||||
let max = Math.max(...beforeNums);
|
let max = Math.max(...beforeNums);
|
||||||
if(max != 0 && max == min) { // 当所有奖池都抽过一遍的时候,第二天五点,重置
|
let min = Math.min(...beforeNums);
|
||||||
|
// 当所有奖池都抽过一遍的时候,第二天五点,重置
|
||||||
for(let item of this.pool) {
|
for(let item of this.pool) {
|
||||||
if(item.getNumToday <= 0) item.unsetHasGet();
|
if((min == max || item.getNumBeforeToday < max) && item.getNumToday <= 0) item.unsetHasGet();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user