Commit 6f27f2f9 by gongyang

修改io方法获取

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