Bladeren bron

修改余额提现

july 4 jaren geleden
bovenliggende
commit
065446cb71

+ 1 - 1
src/main/java/org/springblade/payment/callback/trade/UserPointWithdrawCallback.java

@@ -57,7 +57,7 @@ public class UserPointWithdrawCallback {
 			withdrawRec.setOrderId(res.getString("orderNo"));
 			//提现成功扣商户积分余额
 			BigDecimal price = withdrawRec.getReceiveAmount().add(withdrawRec.getFee()).add(withdrawRec.getPlatformFee());
-			shop.setPoint(shop.getPoint().subtract(withdrawRec.getPrice()));
+			shop.setPoint(shop.getPoint().subtract(price));
 			shopService.saveOrUpdate(shop);
 		} else {
 			withdrawRec.setWithdrawStatus(WithdrawStatus.FAIL.getValue());