fix(other): validate cumulative recharge reward threshold
This commit is contained in:
parent
0e97ecddc9
commit
7e4365a393
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user