根据订单落地 抽奖记录
This commit is contained in:
parent
9c40748e3f
commit
ed2774907e
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue