微信支付分本地调试一直报签名错误
{
"code": "SIGN_ERROR",
"detail": {
"detail": {
"issue": "sign not match"
},
"field": "signature",
"location": "authorization",
"sign_information": {
"method": "POST",
"sign_message_length": 180,
"truncated_sign_message": "",
"url": ""
}
},
"message": "错误的签名,验签失败"
}
可以参考文档进行排查:https://pay.weixin.qq.com/docs/merchant/development/interface-rules/signature-faqs.html
走postmen就会一直签名错误,单元测试不会