From 96ce00a35ccfa804b3519165520d1866f1c872fe Mon Sep 17 00:00:00 2001 From: shine <1042864399@qq.com> Date: Tue, 28 May 2024 11:39:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log.ini | 2 +- logs/warn.log | 2 -- up.go | 4 +--- 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 logs/warn.log diff --git a/log.ini b/log.ini index 6b9858c..938dc11 100644 --- a/log.ini +++ b/log.ini @@ -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=测试 \ No newline at end of file diff --git a/logs/warn.log b/logs/warn.log deleted file mode 100644 index cdf67df..0000000 --- a/logs/warn.log +++ /dev/null @@ -1,2 +0,0 @@ -{asdasd,asdasd} -asdasdasd.asdsad \ No newline at end of file diff --git a/up.go b/up.go index bc05640..7d647ed 100644 --- a/up.go +++ b/up.go @@ -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 }