去除打印

This commit is contained in:
2024-05-28 11:39:29 +08:00
parent 17993bab42
commit 96ce00a35c
3 changed files with 2 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
dir=log
match=warn
url=http://192.168.22.74:6801/upload_v2
url=http://192.168.5.35:6801/upload_v2
key=测试
info=测试

View File

@@ -1,2 +0,0 @@
{asdasd,asdasd}
asdasdasd.asdsad

4
up.go
View File

@@ -3,7 +3,6 @@ package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
@@ -25,10 +24,9 @@ func requestDingApi(url string, msg message) error {
return err
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
_, err = ioutil.ReadAll(resp.Body)
if err != nil {
return err
}
fmt.Println("body:%v", string(body))
return err
}