|
@@ -337,6 +337,13 @@ public class UserTicketController extends BaseApiController {
|
|
|
return AjaxResult.error(ErrorCodeEnum.ERROR_CODE_1019);
|
|
|
}
|
|
|
|
|
|
+ // 线上盲票不支持手动兑奖
|
|
|
+ TicketBox ticketBox = ticketBoxService.getById(ticket.getBoxId());
|
|
|
+ if (TicketTypeEnum.ONLINE.equals(ticketBox.getType())) {
|
|
|
+ LogUtil.error(logger, "线上盲票不支持手动兑奖。ticketId:{0}", ticket.getTicketId());
|
|
|
+ return AjaxResult.error(ErrorCodeEnum.ERROR_CODE_1000);
|
|
|
+ }
|
|
|
+
|
|
|
// 兑奖
|
|
|
String lockKey = RedisLockKey.build(RedisLockKey.USER_TICKET_CASH_LOCK, param.getPrizeId());
|
|
|
if (!distributedLocker.tryLock(lockKey)) {
|