消费送积分修改

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

View File

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