Commit 03c3dca6 by gongyang

修改io获取方式

parent 6f27f2f9
Showing with 2 additions and 1 deletions
......@@ -272,9 +272,10 @@ func PostTopSearchUrl() string {
fmt.Println(err)
return ""
}
body, err := ioutil.ReadAll(res.Body)
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return ""
......
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 sign in to comment