报错
Post https://api.mch.weixin.qq.com/pay/orderquery: x509: certificate signed by unknown authority
描述
- 参考微信文档
https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=23_4
解决方法
- golang解决方法
// 构建http.Client加上 Transport 参数
client := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
},
}