|
|
@ -144,7 +144,8 @@ public class WechatPayController { |
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/addLedgerReceiver", method = RequestMethod.POST) |
|
|
|
@RequestMapping(value = "/addLedgerReceiver", method = RequestMethod.POST) |
|
|
|
@ApiOperation(value = "微信支付 -> 添加分账接收方") |
|
|
|
@ApiOperation(value = "微信支付 -> 添加分账接收方") |
|
|
|
public void addLedgerReceiver(HttpServletRequest request, HttpServletResponse response) { |
|
|
|
public void addLedgerReceiver(@RequestParam(name = "sub_mch_id", required = true) String sub_mch_id, |
|
|
|
|
|
|
|
HttpServletRequest request, HttpServletResponse response) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
WxSharingReceiversVO receiversVO = new WxSharingReceiversVO(); |
|
|
|
WxSharingReceiversVO receiversVO = new WxSharingReceiversVO(); |
|
|
@ -156,7 +157,7 @@ public class WechatPayController { |
|
|
|
Map<String , String> map = new HashMap<>(); |
|
|
|
Map<String , String> map = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
map.put("mch_id" , "1289663601"); |
|
|
|
map.put("mch_id" , "1289663601"); |
|
|
|
map.put("sub_mch_id" , "1624126902"); |
|
|
|
map.put("sub_mch_id" , sub_mch_id); |
|
|
|
map.put("appid" , "wxa075e8509802f826"); |
|
|
|
map.put("appid" , "wxa075e8509802f826"); |
|
|
|
map.put("nonce_str" , WxUtils.makeNonStr()); |
|
|
|
map.put("nonce_str" , WxUtils.makeNonStr()); |
|
|
|
map.put("sign_type" , "HMAC-SHA256"); |
|
|
|
map.put("sign_type" , "HMAC-SHA256"); |
|
|
|