消费送积分修改

This commit is contained in:
张松
2025-11-13 14:39:09 +08:00
parent ea58a767f6
commit ea25899dd7

View File

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