Skip to content

Commit

Permalink
fix: update img pool
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed May 4, 2024
1 parent 4c0c06a commit ad9a74e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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-0.20240501122621-27fbe564d42a
github.com/FloatTech/zbputils v1.7.1-0.20240502092335-a5e741cee806
github.com/FloatTech/zbputils v1.7.1-0.20240504092226-b5c77321fb9d
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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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-0.20240501122621-27fbe564d42a h1:9HPKT4WuO5nYVxVRie7OTn2kV9cwaktulkZbBbCqXkg=
github.com/FloatTech/zbpctrl v1.6.1-0.20240501122621-27fbe564d42a/go.mod h1:RxqNENMwHUUZz5IazDxhnmyejGV0xQthYpScMU9cWbw=
github.com/FloatTech/zbputils v1.7.1-0.20240502092335-a5e741cee806 h1:7G8hukOqlz50jCyqIPfiHUnHP2U4nICbl83hnvQ0rnA=
github.com/FloatTech/zbputils v1.7.1-0.20240502092335-a5e741cee806/go.mod h1:Gl22KYB0l0P0h8t1k7J4TgVx7fNTSwP06pRmXqshVtc=
github.com/FloatTech/zbputils v1.7.1-0.20240504092226-b5c77321fb9d h1:sffV5H8r8YI6Lo0H8nyLI6WrJ7lwe00hckzEAR/Ace8=
github.com/FloatTech/zbputils v1.7.1-0.20240504092226-b5c77321fb9d/go.mod h1:vDXij8BWx24ZOh0/ENlcIJyKrxX1mPDgcQUtmlJuTNw=
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=
Expand Down
2 changes: 1 addition & 1 deletion plugin/lolicon/lolicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion plugin/saucenao/searcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,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)
Expand Down
2 changes: 1 addition & 1 deletion plugin/setutime/setu_geter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion plugin/tarot/tarot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit ad9a74e

Please sign in to comment.