mirror of
https://github.com/xxjwxc/public.git
synced 2025-09-26 11:51:14 +08:00
1
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -85,7 +86,7 @@ func SendGet(url, params string, obj interface{}) bool {
|
||||
return false
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
mylog.Error(err)
|
||||
return false
|
||||
|
Reference in New Issue
Block a user