Browse Source

fixed 退款协议问题

fushengqian 1 year ago
parent
commit
c26351f832

+ 1 - 1
fuint-application/src/main/java/com/fuint/common/service/impl/WeixinServiceImpl.java

@@ -812,8 +812,8 @@ public class WeixinServiceImpl implements WeixinService {
                     .notify_url(wxPayApiConfig.getDomain() + REFUND_NOTIFY_URL)
                     .notify_url(wxPayApiConfig.getDomain() + REFUND_NOTIFY_URL)
                     .build()
                     .build()
                     .createSign(wxPayApiConfig.getPartnerKey(), SignType.MD5);
                     .createSign(wxPayApiConfig.getPartnerKey(), SignType.MD5);
-            String refundStr = WxPayApi.orderRefund(false, params, wxPayApiConfig.getCertPath(), wxPayApiConfig.getMchId());
             logger.info("WeixinService doRefund params: {}", params);
             logger.info("WeixinService doRefund params: {}", params);
+            String refundStr = WxPayApi.orderRefundByProtocol(false, params, wxPayApiConfig.getCertPath(), wxPayApiConfig.getMchId(), "");
             logger.info("WeixinService doRefund return: {}", refundStr);
             logger.info("WeixinService doRefund return: {}", refundStr);
             Map<String, String> result = WxPayKit.xmlToMap(refundStr);
             Map<String, String> result = WxPayKit.xmlToMap(refundStr);
             String returnCode = result.get("return_code");
             String returnCode = result.get("return_code");