收藏
回答

会员卡 - 修改会员卡模板信息报错

https://api.mch.weixin.qq.com/v3/marketing/membercard-open/cards/pLmpo1BqswG1Gq9W6tGoUrRBITjY?code_mode=SYSTEM_ALLOCATE&title=微信测试卡2.1


headers[[Accept: application/json, Content-type: application/json; charset=utf-8, Authorization: WECHATPAY2-SHA256-RSA2048 mchid="1500897871",nonce_str="vdd8109wDtq0ZFkEwyOXgmzodcrDsQIu",timestamp="1732515714",serial_no="3C60D8FBFF2FFCA9BF8FAAFC719BFB1566B17E83",signature="M4llUvi6uWSwWrRavl81fBA76rLGaEyxl/ndaMyp1IBRBQofLLIlvfbS0uTftyReqbLZSSfQ3TiEYqRyo2/qlAwFCtsn46IVhaJZLQZfzvxf37V16PYfrtL6qE2/rin27LjW4IoiBDT9qB+YuQq7DX3dHLLDWsoMzLo7HJ9Vs48YgbQIREWHque0gDAWE47uP9rVbUjw5uw1sTt+zB9nMpkbnZp5otbCTixqqnpYOy2mbIsTMzOVvGBFZsrWgwxYxnLaaTnBvgm2bVyyrmNv+elpoDi88bus0bNNEwggHPk4YJkSve2M0AITKvTXtA16wzXI03HDE5ZC43AaYO3jdw==", Host: api.mch.weixin.qq.com, Connection: Keep-Alive, User-Agent: WechatPay-Apache-HttpClient/0.4.9 (Windows 10/10.0) Java/18.0.2.1, Accept-Encoding: gzip,deflate]]


{

    "code": "SIGN_ERROR",

    "detail": {

        "detail": {

            "issue": "sign not match"

        },

        "field": "signature",

        "location": "authorization",

        "sign_information": {

            "method": "GET",

            "sign_message_length": 195,

            "truncated_sign_message": "GET\n/v3/marketing/membercard-open/cards/pLmpo1BqswG1Gq9W6tGoUrRBITjY?code_mode=SYSTEM_ALLOCATE&title=%E5%BE%AE%E4%BF%A1%E6%B5%8B%E8%AF%95%E5%8D%A12.1\n1732515714\nvdd8109wDtq0ZFkEwyOXgmzodcrDsQIu\n\n",

            "url": "/v3/marketing/membercard-open/cards/pLmpo1BqswG1Gq9W6tGoUrRBITjY?code_mode=SYSTEM_ALLOCATE&title=%E5%BE%AE%E4%BF%A1%E6%B5%8B%E8%AF%95%E5%8D%A12.1"

        }

    },

    "message": "错误的签名,验签失败"

}


回答关注问题邀请回答
收藏

1 个回答

  • Memory
    Memory
    11-25

    这报错很明显了,签名问题,再说了,这接口也不是get方法去请求

    11-25
    有用
    回复
登录 后发表内容