KKSU
2024-05-30 ffb38bc2a78e67e56bfb5bf028a1567204ea59eb
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,8 @@
         JsApiPayBusiness jsApiPayBusiness = new JsApiPayBusiness();
         String paySecret = xcxProperties.getWecharpaySecret();
         String appId = xcxProperties.getXcxAppid();
         String certLocalPath = xcxProperties.getCertLocalPath();
//         String certLocalPath = xcxProperties.getCertLocalPath();
         String 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 +141,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();