chore: update deps

This commit is contained in:
源文雨
2024-05-05 03:35:37 +09:00
parent 1351a7edbe
commit 15df65af7b
6 changed files with 7 additions and 7 deletions

View File

@@ -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 {

View File

@@ -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)

View File

@@ -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())

View File

@@ -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
}