From a79d562895fda98a60d66a8c8364151d35fe2a63 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 23 Oct 2025 14:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../red/circle/other/app/command/activity/LotteryDrawExe.java | 4 +--- .../other/app/command/activity/LotteryMultiDrawExe.java | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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);