月任务抽奖
This commit is contained in:
@@ -231,6 +231,10 @@ public class DiscSpinningController {
|
|||||||
}
|
}
|
||||||
redisKey = RedisKeys.getDateKey("spinning:draw:taskW") + userId;
|
redisKey = RedisKeys.getDateKey("spinning:draw:taskW") + userId;
|
||||||
} else if (source.equals(3)) {
|
} 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;
|
redisKey = RedisKeys.getDateKey("spinning:draw:taskM") + userId;
|
||||||
}
|
}
|
||||||
Map<String, Object> week = redisUtils.get(redisKey, Map.class);
|
Map<String, Object> week = redisUtils.get(redisKey, Map.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user