楼主解决了吗
返回 错误的签名,验签失败 ? 签名格式是按照文档生成的[图片] [图片] [图片]
2021-04-26楼主解决了吗
错误的签名,验签失败,请问什么原因导致的?string(386) "{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"POST","sign_message_length":2109,"truncated_sign_message":"POST\n/v3/marketing/busifavor/stocks\n1590474725\n9ixs491ysdlobh66awph3nz504tblrdk\n{\r\n\"st\n","url":"/v3/marketing/busifavor/stocks"}},"message":"错误的签名,验签失败"}"
2021-04-26楼主解决了吗,我和你的问题一摸一样
验签返回的truncated_sign_message与传参为什么不一样?调用https://api.mch.weixin.qq.com/v3/smartguide/guides接口进行服务人员注册,接口返回验签错误,返回信息:{\"code\":\"SIGN_ERROR\",\"detail\":{\"detail\":{\"issue\":\"sign not match\"},\"field\":\"signature\",\"location\":\"authorization\",\"sign_information\":{\"method\":\"POST\",\"sign_message_length\":79,\"truncated_sign_message\":\"POST\\n/v3/smartguide/guides\\n1591088141\\n1591088141009\\n{\\\"sub_mc\\n\",\"url\":\"/v3/smartguide/guides\"}},\"message\":\"错误的签名,验签失败\"} ,代码中传参打印:签名内容: ohVJ9bYeuhXbrOT7+wE7J9VILPWyv/TSA9N+ohghZFndsIMcuVjtyMuu4yb4XmjQBIrIljEJXaD9Dql28qC/gNe+0ZTO1nszb+csu75TQeJhjDP4Opo5EnxjpvQRYhpckIfPWGzXtMxDurK5M0I0Itz1fDbOrAVGTksSg2avzT0i/iIKRpKNoB2fvOA+PcSl0L0/apMpnmDoNLhokNlOVoJGBld1AjV/uFiETez5Wcoslwbcf/uk9BVpAdbxuMvH2fI+YdYPCj2Sf/X57kCJycnmfIWDRzvx1mCSxDh4e+ST/BRRXI6UkKMeh0JZbHotQ+6d3S5P5BrTGc+mluQmiA==,签名长度:344,message:post /v3/smartguide/guides 411591088141 1591088141009 {"sub_mchid":"1544402991"}
2021-04-26