{\"code\":\"SIGN_ERROR\",\"detail\":{\"detail\":{\"issue\":\"sign not match\"},\"field\":\"signature\",\"location\":\"authorization\",\"sign_information\":{\"method\":\"POST\",\"sign_message_length\":89,\"truncated_sign_message\":\"POST\\n/v3/marketing/favor/media/image-upload\\n1600233831\\n01f12c9fd9c92f936ed33a3a4ea817e3\\n\\n\",\"url\":\"/v3/marketing/favor/media/image-upload\"}},\"message\":\"错误的签名,验签失败\"}",{"url":"https://api.mch.weixin.qq.com/v3/marketing/favor/media/image-upload","content_type":"application/json; charset=utf-8","http_code":401,"header_size":341,"request_size":838,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.088084,"namelookup_time":0.004155,"connect_time":0.012549,"pretransfer_time":0.040962,"size_upload":17896,"size_download":389,"speed_download":4416,"speed_upload":203169,"download_content_length":389,"upload_content_length":17896,"starttransfer_time":0.049388,"redirect_time":0,"redirect_url":"","primary_ip":"101.227.146.141","certinfo":[],"primary_port":443,"local_ip":"","local_port":}
看返回的错误信息是没有带图片的body体生成签名,但是生成签名的时候确实带了boy体,大家有没有遇到过类似情况{\"filename\":\"f9ccd93f572db5d81fb36251634eae9d.jpg\",\"sha256\":\"bd384167e29ffb48c3a04bf7c62b9760dd5cddd0d76f8660b2b19e6f08c2f05d\"} 生成签名的时候我带了这个参数。但是返回来说我没带上
验证签名工具:
链接:https://pan.baidu.com/s/1ixOAnYyZVW13dFr0jWVpvw 提取码:wujv
,麻烦使用V3签名验证工具参考V3签名文档https://wechatpay-api.gitbook.io/wechatpay-api-v3/
进行排查修改。V3签名需使用apiv3秘钥。麻烦参考https://kf.qq.com/faq/180830E36vyQ180830AZFZvu.html