活动:今日挑战时间逻辑,累积型的只计算小于等于当天的数

This commit is contained in:
luying
2022-05-06 17:46:28 +08:00
parent 9a68ea85e1
commit 88ec84a901
2 changed files with 6 additions and 0 deletions

View File

@@ -65,6 +65,10 @@ export class GrowthHandler {
if (!growthItemData.canReceive()) {//已经领取过
return resResult(STATUS.ACTIVITY_REWARDED);
}
if(growthItemData.dayIndex < playerData.today()) {
return resResult(STATUS.ACTIVITY_DAY_INDEX_OVER);
}
await ActivityGrowthModel.addCellRecord(serverId, activityId, roleId, dayIndex, cellIndex, 1);
let rewardParamArr: Array<RewardParam> = stringToRewardParam(growthItemData.reward);