|
|
@ -167,22 +167,17 @@ public class WechatPayController { |
|
|
|
wxSharingOrderRequest.setAppid("wx637bd6f7314daa46"); |
|
|
|
wxSharingOrderRequest.setAppid("wx637bd6f7314daa46"); |
|
|
|
wxSharingOrderRequest.setNonce_str(WxUtils.makeNonStr()); |
|
|
|
wxSharingOrderRequest.setNonce_str(WxUtils.makeNonStr()); |
|
|
|
|
|
|
|
|
|
|
|
/* List<WxSharingReceiversVO> list = new ArrayList<>(); |
|
|
|
|
|
|
|
WxSharingReceiversVO receiversVO = new WxSharingReceiversVO(); |
|
|
|
WxSharingReceiversVO receiversVO = new WxSharingReceiversVO(); |
|
|
|
receiversVO.setAccount(wxSharingOrderRequest.getSub_mch_id()); |
|
|
|
receiversVO.setAccount(wxSharingOrderRequest.getSub_mch_id()); |
|
|
|
receiversVO.setType("MERCHANT_ID"); |
|
|
|
receiversVO.setType("MERCHANT_ID"); |
|
|
|
|
|
|
|
receiversVO.setName("嗨加油"); |
|
|
|
receiversVO.setRelation_type("SERVICE_PROVIDER"); |
|
|
|
receiversVO.setRelation_type("SERVICE_PROVIDER"); |
|
|
|
list.add(receiversVO);*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String,Object> receiversVO = new HashMap<>(); |
|
|
|
|
|
|
|
receiversVO.put("type", "MERCHANT_ID"); |
|
|
|
|
|
|
|
receiversVO.put("relation_type", "SERVICE_PROVIDER"); |
|
|
|
|
|
|
|
receiversVO.put("account", wxSharingOrderRequest.getSub_mch_id()); |
|
|
|
|
|
|
|
receiversVO.put("name", "个体户"); |
|
|
|
|
|
|
|
wxSharingOrderRequest.setReceiver(JSONObject.toJSONString(receiversVO)); |
|
|
|
wxSharingOrderRequest.setReceiver(JSONObject.toJSONString(receiversVO)); |
|
|
|
|
|
|
|
|
|
|
|
BeanMap beanMap = BeanMap.create(wxSharingOrderRequest); |
|
|
|
BeanMap beanMap = BeanMap.create(wxSharingOrderRequest); |
|
|
|
wxSharingOrderRequest.setSign(WxUtils.makeSign(beanMap, "SHA256" ,"SHA256")); |
|
|
|
wxSharingOrderRequest.setSign(WxUtils.makeSign(beanMap, "ASDfksdrgg55dDJoe5fky5u8trylDs5u" ,"SHA256")); |
|
|
|
|
|
|
|
|
|
|
|
String url = "https://api.mch.weixin.qq.com/pay/profitsharingaddreceiver"; |
|
|
|
String url = "https://api.mch.weixin.qq.com/pay/profitsharingaddreceiver"; |
|
|
|
String xm = XmlUtil.toSplitXml(wxSharingOrderRequest); |
|
|
|
String xm = XmlUtil.toSplitXml(wxSharingOrderRequest); |
|
|
|