This commit is contained in:
parent
59a3500315
commit
d6757be84d
|
|
@ -124,7 +124,7 @@ public class DiscSpinningController {
|
|||
}
|
||||
|
||||
@Login
|
||||
@PostMapping("/app/discSpinning/draw")
|
||||
@GetMapping("/app/discSpinning/draw")
|
||||
@ApiOperation("抽取大转盘")
|
||||
public Result draw(Long orderId, @RequestAttribute("userId") Long userId) {
|
||||
int drawCount = Integer.parseInt(commonRepository.findOne(901).getValue());
|
||||
|
|
@ -201,7 +201,7 @@ public class DiscSpinningController {
|
|||
@Transactional
|
||||
public DiscSpinningRecord draws(double orderAmount, Long orderId, Long userId) {
|
||||
DiscSpinning result = new DiscSpinning("谢谢惠顾", 1, null);
|
||||
List<DiscSpinning> prizes = discSpinningService.list();
|
||||
List<DiscSpinning> prizes = discSpinningService.list(new QueryWrapper<DiscSpinning>().orderByAsc("odds"));
|
||||
Random random = new Random();
|
||||
double randomDouble;
|
||||
do {
|
||||
|
|
|
|||
Loading…
Reference in New Issue