Closed taoliujun closed 3 months ago
代码是wxpay.v3.pay.transactions.jsapi.post,AxiosError报错404,看AxiosError的Request日志,请求的是path: 'https://api.mch.weixin.qq.com/then'。
wxpay.v3.pay.transactions.jsapi.post
path: 'https://api.mch.weixin.qq.com/then'
进一步检查发现,是new Wechatpay报的错误。
已经解决,要移除async。
new Wechatpay 是同步代码,顾不需要async标识符
new Wechatpay
async
代码是
wxpay.v3.pay.transactions.jsapi.post
,AxiosError报错404,看AxiosError的Request日志,请求的是path: 'https://api.mch.weixin.qq.com/then'
。