$str = "GET"."\n".$url."\n".$time."\n".$noncestr."\n".$jsonData."\n"; $signHead = $this->getSign($str); 这里用 GET,别用POST
v3签名问题:错误的签名,验签失败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"[代码][代码]:[代码][代码] [代码][代码]"错误的签名,验签失败"[代码][代码]}[代码]请问下这怎么解决呢?
2022-11-11