回调 赠送积分 状态问题

This commit is contained in:
2025-03-18 09:54:58 +08:00
parent 1e0e8f251c
commit 7b70803999

View File

@@ -714,7 +714,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
couponService.use(coupons, shopUser.getId(), orderInfo.getId());
}
}
if (!payType.equals(PayEnums.VIP_PAY)) {
if ((orderInfo.getPayType() != null && orderInfo.getPayType().equals(PayEnums.VIP_PAY.getValue()))
|| (payType != null && !payType.equals(PayEnums.VIP_PAY))) {
//下单赠送积分
pointsService.consumeAwardPoints(shopUser.getId(), orderInfo);
}