我采用的是NET 开发,我能调用更新证书接口,但是调用上传图片出现签名错误,奇怪了请问怎么个情况。
接口:https://api.mch.weixin.qq.com/v3/merchant/media/upload
错误信息:
{
"code": "SIGN_ERROR",
"detail": {
"detail": {
"issue": "sign not match"
},
"field": "signature",
"location": "authorization",
"sign_information": {
"method": "POST",
"sign_message_length": 76,
"truncated_sign_message": "POST\n/v3/merchant/media/upload\n1582126700\n43ea80201ba84d05a7baf2e526cb0774\n\n",
"url": "/v3/merchant/media/upload"
}
},
"message": "错误的签名,验签失败"
}
请求的签名:
签名后的信息:
ULRjtyB6buDyoqbysVcSWuh4Y2w/fRaUKMUE481oJamMcCAzf2Ure3fYLGGDUW5AjbOeJp8WRoEW7WQJ6/wm1ogk5dz255BHMeOD2ojcN5i97V0DWh7qMViEw5ttqgWb1pzgq0w8GBpaRa0PJ+9koZGOlbg3nu+OAfxvI66lvKnSo15ZMQ7zxlqtkOFrD463Jli2SAA+H7QzWXa7WdErbgRkQEsYowTyHDJiJtw2BbPgqR9m3/x0+BYq7qaviGlawCrSdXgkcRJLPzYp9LwQj5n7zR5Ko1OW8x/uzGdtQPHtTa+Zb/5o54L8EfumOgpX5mtb2aTaSJ0ihxaed1BUYg==
我提交的body :
签名代码:
能分享下图片上传的代码吗,我签名通过后一直报参数错误
问题我已经解决了,我以及分享到博客园各位需求可以去参考:
https://www.cnblogs.com/printertool/p/12345972.html
添加一下WePayTS8(备注:微信社区 XXX问题)。