From 15df65af7b98d0b04732be1946153604a2b958d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 5 May 2024 03:35:37 +0900 Subject: [PATCH] chore: update deps --- go.mod | 2 +- go.sum | 4 ++-- plugin/lolicon/lolicon.go | 2 +- plugin/saucenao/searcher.go | 2 +- plugin/setutime/setu_geter.go | 2 +- plugin/tarot/tarot.go | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index ef2f82d64d..fd4500f73a 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/FloatTech/sqlite v1.6.3 github.com/FloatTech/ttl v0.0.0-20230307105452-d6f7b2b647d1 github.com/FloatTech/zbpctrl v1.6.1 - github.com/FloatTech/zbputils v1.7.1-0.20240504134720-ce2b1be4b85a + github.com/FloatTech/zbputils v1.7.1-0.20240504183209-0ffd8b27cbeb github.com/RomiChan/syncx v0.0.0-20240418144900-b7402ffdebc7 github.com/RomiChan/websocket v1.4.3-0.20220227141055-9b2c6168c9c5 github.com/antchfx/htmlquery v1.2.5 diff --git a/go.sum b/go.sum index 9e503075a6..1d7e198c16 100644 --- a/go.sum +++ b/go.sum @@ -18,8 +18,8 @@ github.com/FloatTech/ttl v0.0.0-20230307105452-d6f7b2b647d1 h1:g4pTnDJUW4VbJ9Nvo github.com/FloatTech/ttl v0.0.0-20230307105452-d6f7b2b647d1/go.mod h1:fHZFWGquNXuHttu9dUYoKuNbm3dzLETnIOnm1muSfDs= github.com/FloatTech/zbpctrl v1.6.1 h1:SilK5R2poO8iUT6JPzpgr/BSzxYAaybBYNZkMyZ8STw= github.com/FloatTech/zbpctrl v1.6.1/go.mod h1:I+MetM++1sJhNPg3zww1aw04BicYsNohvHC4Jh52XSo= -github.com/FloatTech/zbputils v1.7.1-0.20240504134720-ce2b1be4b85a h1:tjpvpv8Elnj2w+MSE9lu1qrghfpVU1zNw8ngKZS1H4A= -github.com/FloatTech/zbputils v1.7.1-0.20240504134720-ce2b1be4b85a/go.mod h1:drCjiDLLtRIfN9sRJKJneReZmn/LsBGB8TWYgEoWrA0= +github.com/FloatTech/zbputils v1.7.1-0.20240504183209-0ffd8b27cbeb h1:fr58qeiqEz5UfeN/e07jBqVobPvp1ZjE2spFLtny6eI= +github.com/FloatTech/zbputils v1.7.1-0.20240504183209-0ffd8b27cbeb/go.mod h1:drCjiDLLtRIfN9sRJKJneReZmn/LsBGB8TWYgEoWrA0= github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc= github.com/RomiChan/syncx v0.0.0-20240418144900-b7402ffdebc7 h1:S/ferNiehVjNaBMNNBxUjLtVmP/YWD6Yh79RfPv4ehU= github.com/RomiChan/syncx v0.0.0-20240418144900-b7402ffdebc7/go.mod h1:vD7Ra3Q9onRtojoY5sMCLQ7JBgjUsrXDnDKyFxqpf9w= diff --git a/plugin/lolicon/lolicon.go b/plugin/lolicon/lolicon.go index c612071608..25f5eb3465 100644 --- a/plugin/lolicon/lolicon.go +++ b/plugin/lolicon/lolicon.go @@ -72,7 +72,7 @@ func init() { m, err := imagepool.GetImage(name) if err != nil { m.SetFile(imageurl) - _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx)) + _, _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx)) process.SleepAbout1sTo2s() } if err == nil { diff --git a/plugin/saucenao/searcher.go b/plugin/saucenao/searcher.go index 393c589b12..9afb04bad4 100644 --- a/plugin/saucenao/searcher.go +++ b/plugin/saucenao/searcher.go @@ -85,7 +85,7 @@ func init() { // 插件主体 err1 := illust.DownloadToCache(i) if err1 == nil { m.SetFile(f) - _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx)) + _, _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx)) } if err1 != nil { logrus.Debugln("[saucenao]下载err:", err1) diff --git a/plugin/setutime/setu_geter.go b/plugin/setutime/setu_geter.go index 0b226c1d79..1e8eeeeb65 100644 --- a/plugin/setutime/setu_geter.go +++ b/plugin/setutime/setu_geter.go @@ -172,7 +172,7 @@ func (p *imgpool) push(ctx *zero.Ctx, imgtype string, illust *pixiv.Illust) { } } m.SetFile(f) - _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx)) + _, _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx)) msg = message.Image("file:///" + f) } else { msg = message.Image(m.String()) diff --git a/plugin/tarot/tarot.go b/plugin/tarot/tarot.go index 24a15a9604..442313b817 100644 --- a/plugin/tarot/tarot.go +++ b/plugin/tarot/tarot.go @@ -348,7 +348,7 @@ func poolimg(ctx *zero.Ctx, imgurl, imgname, cache string) (msg message.MessageS } } m.SetFile(aimgfile) - _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx)) + _, _ = m.Push(ctxext.SendToSelf(ctx), ctxext.GetMessage(ctx)) msg = message.Image("file:///" + aimgfile) return }