查询订单接口 (https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}): 错误的签名,验签失败
查询退款订单详情(https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{out_refund_no})是正常的
订单查询错误返回:
{
"code":"SIGN_ERROR",
"detail":{
"detail":{
"issue":"sign not match"
},
"field":"signature",
"location":"authorization",
"sign_information":{
"method":"GET",
"sign_message_length":127,
"truncated_sign_message":"GET
/v3/pay/transactions/out-trade-no/xxxx1030417160002109912322?mchid=141******02
1616657630
syBgblReISkl2xRClcQFCcBo0Bcgvlno
",
"url":"/v3/pay/transactions/out-trade-no/xxxx1030417160002109912322?mchid=141******02"
}
},
"message":"错误的签名,验签失败"
}
参考官方的,我这边遇到的问题跟几年前楼主一样,找了一圈,发现其实是WxPayApi的v3接口带的body参数的问题,get方法可以带map类型的参数,post的用统一执行入口,执行时候断点进入判断下数据问题,提醒后来人