@@ -317,7 +317,7 @@ public class UserTicketController extends BaseApiController {
// 兑奖
String lockKey = RedisLockKey.build(RedisLockKey.USER_TICKET_CASH_LOCK, param.getPrizeId());
- if (distributedLocker.tryLock(lockKey)) {
+ if (!distributedLocker.tryLock(lockKey)) {
return AjaxResult.error("系统繁忙,请稍后再试");
}
try {
@@ -210,7 +210,7 @@ public class UserHitPrizeServiceImpl extends ServiceImpl<UserHitPrizeMapper, Use
String lockKey = RedisLockKey.build(RedisLockKey.USER_TICKET_CASH_LOCK, ticketAwardsPrize.getPrizeId());
throw new ServiceException("系统繁忙,请稍后再试");