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. 更新任务进度状态