docs(更新演示): 更新演示地址

This commit is contained in:
2022-11-30 16:07:58 +08:00
parent 34d8ce7ac0
commit f18eb90657
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ package tipdw
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"sync"
"time"
@ -63,7 +63,7 @@ func QueryIP(sk string, key string, ip string) (result Result, err error) {
return
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return
}