调用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"}
楼主解决了吗,我和你的问题一摸一样
你好,建议提供一下反正的请求和返回的参数。
返回的签名错误提示:{\"code\":\"SIGN_ERROR\",\"detail\":{\"detail\":{\"issue\":\"sign not match\"},\"field\":\"signature\",\"location\":\"authorization\",\"sign_information\":{\"method\":\"POST\",\"sign_message_length\":1035,\"truncated_sign_message\":\"POST\\n/v3/smartguide/guides\\n1591153466\\n1591153466099\\n{\\\"store_\\n\",\"url\":\"/v3/smartguide/guides\"}},\"message\":\"错误的签名,验签失败\"}