去除打印

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
+1 -1
View File
@@ -1,5 +1,5 @@
dir=log dir=log
match=warn match=warn
url=http://192.168.22.74:6801/upload_v2 url=http://192.168.5.35:6801/upload_v2
key=测试 key=测试
info=测试 info=测试
-2
View File
@@ -1,2 +0,0 @@
{asdasd,asdasd}
asdasdasd.asdsad
+1 -3
View File
@@ -3,7 +3,6 @@ package main
import ( import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"fmt"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
) )
@@ -25,10 +24,9 @@ func requestDingApi(url string, msg message) error {
return err return err
} }
defer resp.Body.Close() defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body) _, err = ioutil.ReadAll(resp.Body)
if err != nil { if err != nil {
return err return err
} }
fmt.Println("body:%v", string(body))
return err return err
} }