From c8ede996bf0ccfafdc683fa14812d26e3f98a02e Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Wed, 25 Sep 2024 11:52:05 +0800 Subject: [PATCH] 会员列表排序异常 --- src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java b/src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java index 0301f4e..28c0ef8 100644 --- a/src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java +++ b/src/main/java/cc/mrbird/febs/pay/util/WeixinServiceUtil.java @@ -7,6 +7,7 @@ import cc.mrbird.febs.pay.service.impl.JsApiPayComService; import cc.mrbird.febs.pay.service.impl.RefundService; import cn.hutool.core.util.StrUtil; +import cn.hutool.json.JSONUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; @@ -101,7 +102,11 @@ JsApiPayBusiness jsApiPayBusiness = new JsApiPayBusiness(); String paySecret = xcxProperties.getWecharpaySecret(); String appId = xcxProperties.getXcxAppid(); + Boolean debug = xcxProperties.getDebug(); String certLocalPath = xcxProperties.getCertLocalPath(); + if(debug){ + certLocalPath = "src/main/resources/wxP12/apiclient_cert.p12"; + } RefundReqData refundReqData=new RefundReqData(mchID,appId,paySecret, outTradeNo, outRefundNo, totalFee, refundFee,opUserID); RefundService refundService=new RefundService(); @@ -139,6 +144,7 @@ * @return */ public boolean comPay(String desc, String outTradeNo,int totalFee, String openid){ + log.info("后台同意提现申请..."+ desc+outTradeNo+totalFee+openid); boolean flag=false; try { JsApiPayBusiness jsApiPayBusiness = new JsApiPayBusiness(); -- Gitblit v1.9.1