From 12a3ed0985bb14b49d939d0a6fad97e2be6593a3 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 5 Mar 2026 14:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=80=BC=E6=BA=A2=E5=87=BA=E5=92=8C?= =?UTF-8?q?=E5=88=B0=E8=B4=A6=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/app/command/task/RoomDailyTaskClaimExe.java | 2 +- .../app/command/task/RoomDailyTaskProgressUpdateExe.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/task/RoomDailyTaskClaimExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/task/RoomDailyTaskClaimExe.java index afd35067..70183fa2 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/task/RoomDailyTaskClaimExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/task/RoomDailyTaskClaimExe.java @@ -107,7 +107,7 @@ public class RoomDailyTaskClaimExe { taskDatabaseService.saveClaimRecords(records); // 发放奖励 - String bizNo = userId + ":" + taskCode + ":" + today + ":batch:" + maxTierClaimed + "-" + maxTierCompleted; + String bizNo = taskCode + ":" + today + ":batch:" + maxTierClaimed + "-" + maxTierCompleted; walletGoldClient.changeBalance(GoldReceiptCmd.builder() .appIncome() .userId(userId) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/task/RoomDailyTaskProgressUpdateExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/task/RoomDailyTaskProgressUpdateExe.java index 4bcb3de7..f1a83862 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/task/RoomDailyTaskProgressUpdateExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/task/RoomDailyTaskProgressUpdateExe.java @@ -73,6 +73,12 @@ public class RoomDailyTaskProgressUpdateExe { return; } + // 用最高档位 targetValue 截断,防止溢出 + int maxProgress = tiers.get(tiers.size() - 1).getTargetValue(); + if (progressValue > maxProgress) { + progressValue = maxProgress; + } + if (progressValue <= progress.getCurrentValue()) { return; }