抽奖次数bug fix

This commit is contained in:
GYJ
2024-12-14 15:05:34 +08:00
parent dec0a17935
commit 09952a245e
4 changed files with 13 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ public class DiscSpinningController {
//任务抽奖
int drawCount = Integer.parseInt(commonRepository.findOne(901).getValue());
Integer i = recordService.countDraw(userId);
if (i != null && i > drawCount) {
if (i != null && i >= drawCount) {
return Result.error("当日可抽奖次数已超限");
}
Orders orders = ordersService.selectOrdersByDay(userId);