From e3bdaad089213bcb76711c0d00205568fe3dd1ae Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 21 Jul 2023 19:00:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E6=B4=BB=E5=8A=A8):=20?= =?UTF-8?q?=E9=B9=8A=E6=A1=A5=E6=B4=BB=E5=8A=A8=E6=8C=91=E6=88=98=E6=AC=A1?= =?UTF-8?q?=E6=95=B0=E5=9C=A8=E5=AE=8C=E6=88=90=E4=B9=8B=E5=90=8E=E6=89=8D?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/domain/activityField/qixiField.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/shared/domain/activityField/qixiField.ts b/shared/domain/activityField/qixiField.ts index 7eb5998e3..4fad7a98e 100644 --- a/shared/domain/activityField/qixiField.ts +++ b/shared/domain/activityField/qixiField.ts @@ -67,14 +67,16 @@ export class QixiData extends ActivityBase { playerData.record.sort((a, b) => a.time.getTime() - b.time.getTime()); for(let data of playerData.record) { let { todayIndex, afterProgress, progress, hasPass, isSkip } = data; - if(todayIndex == this.todayIndex && hasPass) this.todayPlayCnt ++; - if(hasPass) this.playCnt ++; + if(afterProgress >= this.maxProgress) { + if(todayIndex == this.todayIndex && hasPass) this.todayPlayCnt ++; + if(hasPass) this.playCnt ++; + } if(!isSkip) this.progress = afterProgress||progress; this.records.push(data); } if(this.todayPlayCnt >= this.freeCntDaily && this.playCnt < this.freeCnt) { for(let i = 1; i <= this.todayIndex; i++) { - let times = playerData.record.filter(cur => cur.todayIndex == i && cur.hasPass).length; + let times = playerData.record.filter(cur => cur.todayIndex == i && cur.hasPass && cur.afterProgress >= this.maxProgress).length; if(times < this.freeCntDaily) { this.recordTodayIndex = i; break; }