Commit 1fcb761c authored by szh's avatar szh

update

parent d9b292e5
......@@ -204,9 +204,9 @@ func (p *Pai) GetPaiLatestVersion(t int32) (string, error) {
bytesData, _ := json.Marshal(data)
resp, err := http.Post(setting.Chain33Pai.VersionUrl, "application/json", bytes.NewReader(bytesData))
if err != nil {
resp.Close()
return "", err
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
return "", err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment