diff --git a/shared/domain/activityField/dragonBoatField.ts b/shared/domain/activityField/dragonBoatField.ts index 4f652238b..8cd92dab0 100644 --- a/shared/domain/activityField/dragonBoatField.ts +++ b/shared/domain/activityField/dragonBoatField.ts @@ -80,9 +80,18 @@ export class DragonBoatData extends ActivityBase { this.buyCnt = playerData.buyCnt||0; this.todayPlayCnt = 0; this.playCnt = 0; + let recByDay = new Map(); for(let { id, todayIndex, rewards } of (playerData.record||[])) { - if(todayIndex == this.todayIndex) this.todayPlayCnt ++; - this.playCnt ++; + if(todayIndex == this.todayIndex) { + this.todayPlayCnt ++; + this.playCnt ++; + } else { + let n = recByDay.get(todayIndex)||0; + if(n >= this.freeCnt) { // 不包含之前免费玩的次数 + this.playCnt ++; + } + recByDay.set(todayIndex, n + 1); + } let route = this.routes.find(cur => cur.id == id); if(route) route.setPass(rewards); }