根据订单落地 抽奖记录

This commit is contained in:
wangw 2024-12-07 15:46:42 +08:00
parent 9c40748e3f
commit ed2774907e
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class DiscSpinningController {
public Result draw(@ApiIgnore @RequestAttribute("userId") Long userId, @Nullable @ApiIgnore @RequestBody Map maps) { public Result draw(@ApiIgnore @RequestAttribute("userId") Long userId, @Nullable @ApiIgnore @RequestBody Map maps) {
double amount = 0; double amount = 0;
Long orderId = null; Long orderId = null;
if (maps != null && !maps.containsKey("source") && !"task".equals(maps.get("source"))) { if (maps == null || !maps.containsKey("source") || !"task".equals(maps.get("source"))) {
//任务抽奖 //任务抽奖
int drawCount = Integer.parseInt(commonRepository.findOne(901).getValue()); int drawCount = Integer.parseInt(commonRepository.findOne(901).getValue());
Integer i = recordService.countDraw(userId); Integer i = recordService.countDraw(userId);