bug
jiangqs
2023-08-25 156e141e55a8abf486157d1fa89d25e23f4a06a3
ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/util/WechatPayUtils.java
@@ -1,9 +1,7 @@
package com.ruoyi.shop.util;
import com.alibaba.fastjson.JSONObject;
import com.github.binarywang.wxpay.bean.ecommerce.ApplymentsRequest;
import com.github.binarywang.wxpay.bean.ecommerce.ApplymentsResult;
import com.github.binarywang.wxpay.bean.ecommerce.ApplymentsStatusResult;
import com.github.binarywang.wxpay.bean.ecommerce.*;
import com.github.binarywang.wxpay.bean.media.ImageUploadResult;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.github.binarywang.wxpay.service.EcommerceService;
@@ -78,7 +76,9 @@
        lpIcBackIO.close();
        id_card_info.setIdCardName(shopAuthentication.getLpCorporateName());
        id_card_info.setIdCardNumber(shopAuthentication.getLpIdCard());
        id_card_info.setIdCardAddress(shopAuthentication.getLpIdAddress());
        if(shopAuthentication.getMainType()==2){
            id_card_info.setIdCardAddress(shopAuthentication.getLpIdAddress());
        }
        id_card_info.setIdCardValidTimeBegin(shopAuthentication.getLpIcStartDate());
        id_card_info.setIdCardValidTime(shopAuthentication.getLpIcEndDate());
        request.setIdCardInfo(id_card_info);
@@ -154,4 +154,11 @@
        return wxService.getEcommerceService().queryApplyStatusByApplymentId(applymentId);
    }
    public ProfitSharingReceiverResult addProfitSharingReceiver(ProfitSharingReceiverRequest request) throws WxPayException {
        request.setAppid("wxb7f0ea286fc4e535");
        request.setType("MERCHANT_ID");
        request.setRelationType("SERVICE_PROVIDER");
        ProfitSharingReceiverResult result = wxService.getEcommerceService().addReceivers(request);
        return result;
    }
}