admin管理员组

文章数量:1558098

报错

  • Post https://api.mch.weixin.qq/pay/orderquery: x509: certificate signed by unknown authority

描述

  • 参考微信文档
  • https://pay.weixin.qq/wiki/doc/api/micropay.php?chapter=23_4

解决方法

  • golang解决方法
// 构建http.Client加上 Transport 参数
client := &http.Client{
	Transport: &http.Transport{
		TLSClientConfig: &tls.Config{
			InsecureSkipVerify: true,
		},
	},
}
	

本文标签: 报错APImchweixinGolang