tangxiangan 4 dni temu
rodzic
commit
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());