fix: 退款积分空值判断
This commit is contained in:
@@ -1500,7 +1500,7 @@ public class PayService {
|
||||
if (count == 0) {
|
||||
returnCoupon(orderInfo, true);
|
||||
// 返还积分
|
||||
if (orderInfo.getMemberId() != null) {
|
||||
if (orderInfo.getMemberId() != null && orderInfo.getPointsNum() != null && orderInfo.getPointsNum() > 0) {
|
||||
memberPointsService.addPoints(Long.valueOf(orderInfo.getMemberId()), orderInfo.getPointsNum(),
|
||||
"用户退款订单积分返还: " + orderInfo.getPointsNum() + "积分", Long.valueOf(orderInfo.getId()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user