游戏支付提交到微信的post:
微信:
https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=23_4
错误信息:
err:Post https://api.mch.weixin.qq.com/pay/unifiedorder: x509: certificate signed by unknown authority
解决方法:
client := http.Client{ Transport:&http.Transport{ TLSClientConfig:&tls.Config{ InsecureSkipVerify:true, }, }, }
client.Post(url,"text/xml; charset=utf-8",bodyBuf)
跳过验证方法