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

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

@@ -223,6 +223,8 @@ export class CheckSingleTask {
for (let task of dailyChallengeTaskArray) {
if(dicTaskTypeDesc.sumType == TASK_SUM_TYPE.DO && task.dayIndex != playerData.today()) {
continue;
} else if(dicTaskTypeDesc.sumType == TASK_SUM_TYPE.SUM && task.dayIndex < playerData.today()) {
continue;
}
let taskUpdateParam = await this.checkIsMatch(task.taskParamArray, async () => {
let data = await ActivityDailyChallengesModel.findDataByCellIndex(serverId, activityId, roleId, task.dayIndex, task.cellIndex);