diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/activity/ActivityRechargeTicketService.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/activity/ActivityRechargeTicketService.java index 5d5eacea..626244df 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/activity/ActivityRechargeTicketService.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/activity/ActivityRechargeTicketService.java @@ -47,10 +47,18 @@ public class ActivityRechargeTicketService { ); String lockKey = String.format("lucky:draw:lock:%s:%s", userId, FIXED_ACTIVITY_ID); - distributedLockUtil.executeWithLock(lockKey, () -> { - // 在锁内执行抽奖券发放逻辑 - processTicketDistribution(userId); - }); + try { + distributedLockUtil.executeWithLock(lockKey, () -> { + // 在锁内执行抽奖券发放逻辑 + try { + processTicketDistribution(userId); + } catch (Exception e) { + log.error("执行抽奖券发放失败:{}", e.getMessage()); + } + }); + } catch (Exception ignored) { + } + } /**