KKSU
2024-05-31 cbe9cbd4a99dafcf50418a8fa1e8ff7b0e4b6c72
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();