1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

add H5 payment support

This commit is contained in:
Mongo
2017-10-29 21:01:27 +08:00
parent 97752d09a6
commit a4a567e1d4
4 changed files with 50 additions and 22 deletions

View File

@@ -137,7 +137,7 @@ func PostXML(uri string, obj interface{}) ([]byte, error) {
defer response.Body.Close()
if response.StatusCode != http.StatusOK {
return nil, fmt.Errorf("http get error : uri=%v , statusCode=%v", uri, response.StatusCode)
return nil, fmt.Errorf("http code error : uri=%v , statusCode=%v", uri, response.StatusCode)
}
return ioutil.ReadAll(response.Body)
}