diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/LotteryDrawExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/LotteryDrawExe.java index 24c81964..7cad36c6 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/LotteryDrawExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/LotteryDrawExe.java @@ -69,9 +69,7 @@ public class LotteryDrawExe { validateDrawCount(userId, activityId, activity); // 3. 校验并扣除抽奖券(如果需要) - if (activity.getNeedTicket() == 1) { - deductTicket(userId, activity.getTicketCost()); - } + deductTicket(userId, activity.getTicketCost()); // 4. 获取或创建用户进度(用于动态概率) LotteryUserProgress progress = getOrCreateUserProgress(userId, activityId); diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/LotteryMultiDrawExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/LotteryMultiDrawExe.java index 4a98246b..39ccf7c4 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/LotteryMultiDrawExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/LotteryMultiDrawExe.java @@ -79,9 +79,7 @@ public class LotteryMultiDrawExe { ? activity.getMultiDrawTicketCost() : drawCount * activity.getTicketCost(); - if (activity.getNeedTicket() == 1) { - deductTicket(userId, ticketCost); - } + deductTicket(userId, ticketCost); // 5. 获取或创建用户进度(用于动态概率) LotteryUserProgress progress = getOrCreateUserProgress(userId, activityId);