提示改为英文
This commit is contained in:
parent
d550a51bb8
commit
f63bbc8c65
@ -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. 更新任务进度状态
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user