From dda268997ca8f8a364f7c19b45d7a43a50a98efe Mon Sep 17 00:00:00 2001
From: liuhaonan <31457034@qq.com>
Date: 星期二, 25 十月 2022 18:00:11 +0800
Subject: [PATCH] changes

---
 ximon-admin/src/main/java/com/sandu/ximon/admin/pay/wx/WxFastPayService.java |   50 --------------------------------------------------
 1 files changed, 0 insertions(+), 50 deletions(-)

diff --git a/ximon-admin/src/main/java/com/sandu/ximon/admin/pay/wx/WxFastPayService.java b/ximon-admin/src/main/java/com/sandu/ximon/admin/pay/wx/WxFastPayService.java
index 7751a6c..3193607 100644
--- a/ximon-admin/src/main/java/com/sandu/ximon/admin/pay/wx/WxFastPayService.java
+++ b/ximon-admin/src/main/java/com/sandu/ximon/admin/pay/wx/WxFastPayService.java
@@ -142,35 +142,6 @@
         }
     }
 
-    /**
-     * 璁㈠崟閫�娆� 鍙兘閫�娆句竴娆�
-     *
-     * @param orderId
-     * @param refundFee
-     * @param callbackUrl
-     * @return
-     */
-    public boolean refundOrder(String orderId, String refundSn, Integer refundFee, String callbackUrl) {
-        WxPayRefundRequest refundRequest = new WxPayRefundRequest();
-        refundRequest.setOutTradeNo(orderId);
-        refundRequest.setOutRefundNo(refundSn);
-        refundRequest.setRefundFee(refundFee);
-        refundRequest.setTotalFee(refundFee);
-        refundRequest.setNotifyUrl(callbackUrl);
-        try {
-            WxPayRefundResult wxPayRefundResult = wxPayService.refund(refundRequest);
-            if (WxPayConstants.ResultCode.SUCCESS.equals(wxPayRefundResult.getResultCode())) {
-                return true;
-            } else {
-                log.error("寰俊閫�娆惧け璐ワ紝{}", wxPayRefundResult.getErrCodeDes());
-                throw new BusinessException("寰俊閫�娆惧け璐ワ紝" + wxPayRefundResult.getErrCodeDes());
-            }
-        } catch (WxPayException e) {
-            log.error("寰俊閫�娆惧け璐ワ紝{}", e.getErrCodeDes());
-            throw new BusinessException("寰俊閫�娆惧け璐ワ紝" + e.getErrCodeDes());
-        }
-    }
-
 
     /**
      * 閫�娆�
@@ -178,27 +149,6 @@
      */
     @Transactional(rollbackFor = Exception.class)
     public boolean refund(C3mOrder c3mOrder) {
-
-//        WxPayRefundRequest refundRequest = new WxPayRefundRequest();
-//        refundRequest.setOutTradeNo(orderId);
-//        refundRequest.setOutRefundNo(refundSn);
-//        refundRequest.setRefundFee(refundFee);
-//        refundRequest.setTotalFee(refundFee);
-//        refundRequest.setNotifyUrl(callbackUrl);
-//        try {
-//            WxPayRefundResult wxPayRefundResult = wxPayService.refund(refundRequest);
-//            if (WxPayConstants.ResultCode.SUCCESS.equals(wxPayRefundResult.getResultCode())) {
-//                return true;
-//            } else {
-//                log.error("寰俊閫�娆惧け璐ワ紝{}", wxPayRefundResult.getErrCodeDes());
-//                throw new BusinessException("寰俊閫�娆惧け璐ワ紝" + wxPayRefundResult.getErrCodeDes());
-//            }
-//        } catch (WxPayException e) {
-//            log.error("寰俊閫�娆惧け璐ワ紝{}", e.getErrCodeDes());
-//            throw new BusinessException("寰俊閫�娆惧け璐ワ紝" + e.getErrCodeDes());
-//        }
-//
-
 
         WxConfigEntity wxConfig = wxPayConfigService.getConfigByPoleId(c3mOrder.getPoleId());
 

--
Gitblit v1.9.3