Administrator
5 days ago 267c06a5864bb617b1ff0ea82210346bf5573f5f
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;
@@ -36,6 +37,10 @@
    * @return 预支付订单返回的结果对象(该结果对象已封装),在H5页面使用该对象信息
    * @throws Exception
    */
   public BrandWCPayRequestData createActivityOrder(String desc, String outTradeNo, int price, String openId, String attach) throws Exception {
      String wecharActivityPaynotifyUrl = xcxProperties.getWecharActivityPaynotifyUrl();
      return buildBrandWCPayRequestData(desc, outTradeNo, price, openId, attach, wecharActivityPaynotifyUrl);
   }
   public BrandWCPayRequestData createOrder(String desc, String outTradeNo, int price, String openId, String attach) throws Exception {
      String wecharPaynotifyUrl = xcxProperties.getWecharPaynotifyUrl();
      return buildBrandWCPayRequestData(desc, outTradeNo, price, openId, attach, wecharPaynotifyUrl);
@@ -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();