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