月任务抽奖

This commit is contained in:
2025-01-16 14:50:09 +08:00
parent f38d786170
commit 46cd04358c

View File

@@ -231,6 +231,10 @@ public class DiscSpinningController {
}
redisKey = RedisKeys.getDateKey("spinning:draw:taskW") + userId;
} else if (source.equals(3)) {
Integer spinningCount = recordService.countSourceRecord(null, userId, "taskM");
if (spinningCount != null && spinningCount > 0) {
return Result.error("月抽奖用户仅可参加一次");
}
redisKey = RedisKeys.getDateKey("spinning:draw:taskM") + userId;
}
Map<String, Object> week = redisUtils.get(redisKey, Map.class);