const wxpay = new Wechatpay({
mchid: '170*****',
serial: '1454968D14D**********',
privateKey: prikey,
certs: {
'1': cert,
},
secret: 'l**********',
merchant: {
cert: cert,
key: prikey,
},
})
return wxpay.v3.transfer.batches.post({
appid: 'wx3asdfasdfrid',
batch_name:"demo",
batch_remark:'demo',
total_amount:100,
total_num:1,
transfer_detail_list:[
{
out_detail_no:'123123412334',
transfer_amount:100,
transfer_remark:'demo',
openid:info.data.openid,
}
]
}).then(res=>{
console.log(res.data,1111)
return res
})
.catch(({response: {status, statusText, data}}) => console.error(status, statusText, data))

接口调用的不对https://pay.weixin.qq.com/doc/v3/merchant/4012716434