fix: 解决依赖
This commit is contained in:
parent
3c5f87b837
commit
2a32b734c0
1
go.mod
1
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
|
||||
|
|
2
go.sum
2
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=
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue