fix(other): validate cumulative recharge reward threshold

This commit is contained in:
hy001 2026-05-07 17:47:18 +08:00
parent 0e97ecddc9
commit 7e4365a393

View File

@ -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())