|
@@ -264,11 +264,11 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
if (chargeInfo == null) {
|
|
|
throw new BizException("支付项不存在");
|
|
|
}
|
|
|
- BigDecimal amount = sporadicPayDto.getAmount();
|
|
|
+ BigDecimal amount = chargeInfo.getAmount();
|
|
|
if(chargeInfo.getDiscountAmount() != null && chargeInfo.getDiscountAmount().compareTo(BigDecimal.ZERO)>0){
|
|
|
amount = amount.subtract(chargeInfo.getDiscountAmount());
|
|
|
}
|
|
|
- if (!(amount.compareTo(chargeInfo.getAmount()) == 0)) {
|
|
|
+ if (!(amount.compareTo(sporadicPayDto.getAmount()) == 0)) {
|
|
|
throw new BizException("订单金额异常");
|
|
|
}
|
|
|
|