浏览代码

Bug修复

tangxiangan 4 天之前
父节点
当前提交
419ad82465

+ 5 - 1
pdf-office-payment/src/main/java/cn/kdan/cloud/pdf/office/payment/service/impl/WebhookServiceImpl.java

@@ -108,7 +108,11 @@ public class WebhookServiceImpl implements WebhookService {
         BeanUtils.copyProperties(orderByTradeNo, createOrderManual);
         createOrderManual.setPaymentMethod(PaymentMethodEnum.fromValue(orderByTradeNo.getPayment()));
         // 设置实际扣费价格
-        createOrderManual.setPrice(price);
+        if(ObjectUtils.isNotEmpty(oldPrice)){
+            createOrderManual.setPrice(oldPrice);
+        }else {
+            createOrderManual.setPrice(price);
+        }
         createOrderManual.setReducedPrice(price);
         if(!StringUtils.isEmpty(orderByTradeNo.getCurrency())){
             createOrderManual.setCurrency(orderByTradeNo.getCurrency());