wechatpay-apiv3 / wechatpay-go

微信支付 APIv3 的官方 Go Library
https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/index.shtml
Apache License 2.0
1.07k stars 145 forks source link

WithWechatPayAutoAuthCipher报错Authorization不合法 #228

Closed kongchengxinde closed 6 months ago

kongchengxinde commented 6 months ago

postman已经测通了

image

但是代码中使用WithWechatPayAutoAuthCipher后,core.NewClient会报错误: {error http response:[StatusCode: 401 Code: "SIGN_ERROR" Message: Authorization不合法

sun-ou commented 6 months ago

@kongchengxinde 大佬,怎么解决的呀?