|
@@ -112,7 +112,7 @@ public class UserTicketController extends BaseApiController {
|
|
|
@PostMapping("/ticket/queryLuckyNum")
|
|
|
@ApiOperation(value = "查看盲票幸运数字" , notes = "根据盲票组ID,获取盲票幸运数字")
|
|
|
public AjaxResult queryLuckyNum(@RequestBody TicketParam param) {
|
|
|
- Long userId = SecurityUtils.getLoginUser().getUserId();
|
|
|
+
|
|
|
if (StringUtils.isBlank(param.getSerialNo())) {
|
|
|
return AjaxResult.error("参数异常,盲票序列号缺失");
|
|
|
}
|
|
@@ -127,12 +127,13 @@ public class UserTicketController extends BaseApiController {
|
|
|
}
|
|
|
|
|
|
// 已付款的盲票,需要校验当前用户是否有权限查看
|
|
|
- if (ticket.getStatus() == TicketStatusEnum.ACTIVATED) {
|
|
|
+ /*if (ticket.getStatus() == TicketStatusEnum.ACTIVATED) {
|
|
|
+ Long userId = SecurityUtils.getLoginUser().getUserId();
|
|
|
UserTicketOrderItem orderItem = userTicketOrderItemService.queryFinishedOrderItem(userId, ticket.getTicketId());
|
|
|
if (null == orderItem) {
|
|
|
return AjaxResult.error(ErrorCodeEnum.ERROR_CODE_1018);
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
TicketBox ticketBox = ticketBoxService.getById(ticket.getBoxId());
|
|
|
|
|
@@ -147,6 +148,7 @@ public class UserTicketController extends BaseApiController {
|
|
|
ticketVO.setSalePrice(ticketBox.getSalePrice());
|
|
|
ticketVO.setPlainLuckyNum(ticket.getPlainLuckyNum());
|
|
|
ticketVO.setStatus(ticket.getStatus().getValue());
|
|
|
+ ticketVO.setPicUrl(ticketBox.getPicUrl());
|
|
|
|
|
|
return AjaxResult.success(ticketVO);
|
|
|
}
|