参数都对过了,一直报400是什么原因,求帮忙
{Method: GET, RequestUri: 'https://api.mch.weixin.qq.com/v3/certificates', Version: 1.1, Content: <null>, Headers:
{
Accept: application/json
Authorization: WECHATPAY2-SHA256-RSA2048 mchid="1603208176",serial_no="1D495442C149141D49D5E02C9EF76B6CF094A3DA",nonce_str="jvx32sck.wsm",timestamp="1602565705",signature="zwrCoQVYaqtGYxlaFM1Ta2P20P8foPe2O9LEZyQ3EuTcfKsgo1R/bALmGu817ajrRLaVXPycR4KFqfDPKW/i/k0lWMUuhDYpqdSKP/CTiEznLB9VRLDepIZ8ksrupY4fbT9lZ1UdPiYWSKbJb4LKsd3RgBobiHN8En22i5tdgZcQG6TNOL+KsXgfAr0n4dPtYmkzXhrIzGEVsdAtaZZbu2a3Hu4+S7L1KirdMJT/382IT5V8jfKn0FVo86ydi3DVGxk6vCBwaSbCiQXRGMZELNe+qDkZ6GvEtRRqhPVT1sQgP9pM5kMQRdpX1UjOzTreKGZcZ/6uI6yhel71Ys0G1A=="
Request-Id: |8266ef5f-42fd6a0a8635a253.1.
}}
还需要加 Accept 和 UserAgent 两个参数,请求应该是直接被 nginx 拦截下来了,我是使用 Hoppscotch - A free, fast and beautiful API request builder 请求发现问题的
你好,如果是第一次下载证书。https://github.com/wechatpay-apiv3/CertificateDownloader,使用我们的下载工具。
V3文档https://wechatpay-api.gitbook.io/wechatpay-api-v3/jie-kou-wen-dang/ping-tai-zheng-shu#huo-qu-ping-tai-zheng-shu-lie-biao