消费送积分修改
This commit is contained in:
@@ -334,9 +334,11 @@ public class TbMemberConfigServiceImpl extends ServiceImpl<TbMemberConfigMapper,
|
||||
if (levelVO.getIsCostRewardPoints() == 1 && levelVO.getCostRewardPoints() != null) {
|
||||
int points = (int) (money.floatValue() / levelVO.getCostRewardPoints());
|
||||
log.info("消费送积分: {}", points);
|
||||
if (points > 0) {
|
||||
memberPointsService.addPoints(shopUser.getId(), points, "会员消费送积分", null);
|
||||
}
|
||||
}
|
||||
}
|
||||
case RECHARGE -> {
|
||||
if (memberConfig.getRechargeReward() != null) {
|
||||
exp = money.longValue() * memberConfig.getRechargeReward();
|
||||
|
||||
Reference in New Issue
Block a user