🐞 fix(活动): 成长基金的重复领取

This commit is contained in:
luying
2023-06-07 15:28:22 +08:00
parent be0dfb0b85
commit efeb1e0e46
2 changed files with 5 additions and 3 deletions

View File

@@ -65,7 +65,8 @@ export class GrowthFundHandler {
if (!growthFundItemData.isComplete) {//未完成任务
return resResult(STATUS.ACTIVITY_TASK_UNCOMPLETED);
}
if (playerData.isReceive(pageIndex, cellIndex)) {//已经领取过
let hasReceive = await ActivityGrowthFundModel.exists({ roleId, activityId, pageIndex, cellIndex });
if (hasReceive) {//已经领取过
return resResult(STATUS.ACTIVITY_REWARDED);
}