From 7e4365a393208126741d0283c55a32f6e0980e22 Mon Sep 17 00:00:00 2001 From: hy001 Date: Thu, 7 May 2026 17:47:18 +0800 Subject: [PATCH] fix(other): validate cumulative recharge reward threshold --- .../activity/CumulativeRechargeReceiveRewardCmdExe.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/CumulativeRechargeReceiveRewardCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/CumulativeRechargeReceiveRewardCmdExe.java index d92c8a02..6d4b26d6 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/CumulativeRechargeReceiveRewardCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/activity/CumulativeRechargeReceiveRewardCmdExe.java @@ -73,10 +73,10 @@ public class CumulativeRechargeReceiveRewardCmdExe { BigDecimal monthlyRecharge = ResponseAssert.requiredSuccess(userRechargeCountClient .getThisMonthTotalPersonalRecharge(cmd.getReqUserId())); - // 2046 不可领取 + // 2046 不可领取:领取接口必须再次校验当前月充值金额是否达到该档位,不能只依赖前端展示状态。 ResponseAssert.isFalse(PropsErrorCode.UNCLAIMABLE, Objects.isNull(monthlyRecharge) || !ArithmeticUtils - .gt(monthlyRecharge, BigDecimal.ZERO)); + .gte(monthlyRecharge, cumulativeRechargeContent.getQuantity())); activitySendCommon.sendActivityGroup(SendRewardGroup.builder() .trackId(ruleConfig.getId())