服务端调用wxm/pay接口,返回错误信息
[pay_sig] pay_sig is invalid traceid: 33616935, raw post_body(remove wrapped []): [
{"openid":"of04Q7QUCkMGSFwDkK2TG2u6yEYE","offer_id":"1450242338","ts":1717728695,"zone_id":"1","env":1,"amount":60,"bill_no":"1473"}
], base64_encoded_post_body: eyJvcGVuaWQiOiJvZjA0UTdRVUNrTUdTRndEa0syVEcydTZ5RVlFIiwib2ZmZXJfaWQiOiIxNDUwMjQyMzM4IiwidHMiOjE3MTc3Mjg2OTUsInpvbmVfaWQiOiIxIiwiZW52IjoxLCJhbW91bnQiOjYwLCJiaWxsX25vIjoiMTQ3MyJ9 rid: 666276cd-61957e1f-4dc1adee
返回的postBody与本地发送的postBody完全一致,也本地拿文档中的demo测试过签名算法是没有问题的,现网AppKey和沙箱AppKey都试过都是不行。
解决了,url参数写错了原来是signature=,应该是pay_sig=