diff --git a/hai-cweb/src/main/java/com/cweb/controller/pay/WechatPayController.java b/hai-cweb/src/main/java/com/cweb/controller/pay/WechatPayController.java index c9314579..d4f9ea34 100644 --- a/hai-cweb/src/main/java/com/cweb/controller/pay/WechatPayController.java +++ b/hai-cweb/src/main/java/com/cweb/controller/pay/WechatPayController.java @@ -144,7 +144,8 @@ public class WechatPayController { @RequestMapping(value = "/addLedgerReceiver", method = RequestMethod.POST) @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 { WxSharingReceiversVO receiversVO = new WxSharingReceiversVO(); @@ -156,7 +157,7 @@ public class WechatPayController { Map map = new HashMap<>(); 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("nonce_str" , WxUtils.makeNonStr()); map.put("sign_type" , "HMAC-SHA256");