提交代码

dev-discount
胡锐 2 years ago
parent 72150f505a
commit 45420bc7ae
  1. 5
      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<String , String> 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");

Loading…
Cancel
Save