From f63bbc8c65e8a7fe1d74b6e2c3023351d8748234 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 21 Oct 2025 19:14:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=94=B9=E4=B8=BA=E8=8B=B1?= =?UTF-8?q?=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/command/SpinsTaskReceiveRewardExe.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/SpinsTaskReceiveRewardExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/SpinsTaskReceiveRewardExe.java index 25d75729..4b38d25a 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/SpinsTaskReceiveRewardExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/SpinsTaskReceiveRewardExe.java @@ -56,7 +56,7 @@ public class SpinsTaskReceiveRewardExe { ); if (spinsTaskConfigs.isEmpty()) { - throw new RuntimeException("任务不存在或已下线"); + throw new RuntimeException("The task does not exist or has been taken offline"); } SpinsTaskConfig taskConfig = spinsTaskConfigs.get(0); @@ -70,17 +70,17 @@ public class SpinsTaskReceiveRewardExe { ); if (progressList.isEmpty()) { - throw new RuntimeException("任务未开始"); + throw new RuntimeException("The task has not started yet."); } SpinsUserTaskProgress progress = progressList.get(0); // 3. 校验任务状态 if (progress.getTaskStatus() == 0) { - throw new RuntimeException("任务未完成,无法领取奖励"); + throw new RuntimeException("The task is not completed and the reward cannot be claimed"); } if (progress.getTaskStatus() == 2) { - throw new RuntimeException("奖励已领取,请勿重复领取"); + throw new RuntimeException("The reward has been claimed. Please do not claim it again"); } // 4. 发放抽奖券 @@ -97,7 +97,7 @@ public class SpinsTaskReceiveRewardExe { } } catch (Exception e) { log.error("发放抽奖券失败, userId={}, taskCode={}", userId, taskCode, e); - throw new RuntimeException("发放奖励失败,请稍后重试"); + throw new RuntimeException("The reward distribution failed. Please try again later"); } // 5. 更新任务进度状态