Commit 6f27f2f9 by gongyang

修改io方法获取

parent ae69a017
Showing with 1 additions and 2 deletions
......@@ -5,7 +5,6 @@ import (
"flag"
"fmt"
"golang-asynctask/app/dao/scm_data_dao"
"io"
"io/ioutil"
"mime/multipart"
"net/http"
......@@ -275,7 +274,7 @@ func PostTopSearchUrl() string {
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
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