From 2a32b734c09f7f937c392c6efc7e28954a4194b0 Mon Sep 17 00:00:00 2001 From: johlanse Date: Mon, 6 Dec 2021 17:11:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 1 - go.sum | 2 -- push/ding.go | 5 ++--- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 032d1c4..e9af3b8 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,6 @@ require ( github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.4.0-beta.0 github.com/google/uuid v1.1.1 github.com/guonaihong/gout v0.2.9 - github.com/johlanse/ding v0.0.0-20211117082011-7467908ad84f github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible github.com/makiuchi-d/gozxing v0.1.1 github.com/mxschmitt/playwright-go v0.1400.0 diff --git a/go.sum b/go.sum index 34bea9f..9cbefb1 100644 --- a/go.sum +++ b/go.sum @@ -32,8 +32,6 @@ github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/guonaihong/gout v0.2.9 h1:8nU5hrtwP1qDwiadFvU+D+z3ud9WEk8iPSfxQDiebng= github.com/guonaihong/gout v0.2.9/go.mod h1:H1JqEuZmK4h/urWUq/LnIOEzS1kxl5rK3NkFqZ6Rn48= github.com/h2non/filetype v1.1.1/go.mod h1:319b3zT68BvV+WRj7cwy856M2ehB3HqNOt6sy1HndBY= -github.com/johlanse/ding v0.0.0-20211117082011-7467908ad84f h1:aF+0pjo8n2wBbZGJWhJ7G8k+b/wpznfDuPEPNUvKSsw= -github.com/johlanse/ding v0.0.0-20211117082011-7467908ad84f/go.mod h1:GndOHoHck4o85itGUaFnFKRGRR+10GPskkIu2PnkOuY= github.com/jonboulle/clockwork v0.2.2 h1:UOGuzwb1PwsrDAObMuhUnj0p5ULPj8V/xJ7Kx9qUBdQ= github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns= diff --git a/push/ding.go b/push/ding.go index 8f408dc..b697adf 100644 --- a/push/ding.go +++ b/push/ding.go @@ -8,7 +8,6 @@ import ( "time" "github.com/guonaihong/gout" - "github.com/johlanse/ding" ) type Ding struct { @@ -17,7 +16,7 @@ type Ding struct { } func (d *Ding) Send() func(kind string, message string) { - s := ding.TypeSecret{Secret: d.Secret, Webhook: d.Token} + s := TypeSecret{Secret: d.Secret, Webhook: d.Token} return func(kind string, message string) { if kind == "markdown" { err := s.SendMessage(map[string]interface{}{ @@ -31,7 +30,7 @@ func (d *Ding) Send() func(kind string, message string) { return } } else { - err := s.SendMessage(ding.Text(message)) + err := s.SendMessage(Text(message)) if err != nil { return }