v3签名问题
请求地址:https://api.mch.weixin.qq.com/v3/certificates
{"code":"SIGN_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"GET","sign_message_length":66,"truncated_sign_message":"GET\n/v3/certificates\n1612856095\na1fvv93qt5v3zs5m3fdz0sfnqknfjpm1\n\n","url":"/v3/certificates"}},"message":"错误的签名,验签失败"}
请问下这怎么解决呢?

V3签名可参考 https://developers.weixin.qq.com/community/develop/doc/000c46d5d481804ba98bec90356809
$str = "GET"."\n".$url."\n".$time."\n".$noncestr."\n".$jsonData."\n";
$signHead = $this->getSign($str);
这里用 GET,别用POST
我解决了,有问题可以@我,搞死了这玩意
官方也没个格式。气死了
验证签名工具:
链接: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