TheNorthMemory / wechatpay-axios-plugin

微信支付 WeChatPay OpenAPI v2&v3' SDK,以命令行方式与接口交互,play the openapi requests over command line
MIT License
246 stars 37 forks source link

奇怪的post路径 #59

Closed taoliujun closed 3 months ago

taoliujun commented 3 months ago

代码是wxpay.v3.pay.transactions.jsapi.post,AxiosError报错404,看AxiosError的Request日志,请求的是path: 'https://api.mch.weixin.qq.com/then'

image
taoliujun commented 3 months ago

进一步检查发现,是new Wechatpay报的错误。

taoliujun commented 3 months ago

已经解决,要移除async。

image
TheNorthMemory commented 3 months ago

new Wechatpay 是同步代码,顾不需要async标识符