From ba0c05a774d5f4c3f1f19977a40ee429658e5cd3 Mon Sep 17 00:00:00 2001 From: DreamZero <79574799+Jiang-Red@users.noreply.github.com> Date: Fri, 28 Oct 2022 00:20:19 +0800 Subject: [PATCH] =?UTF-8?q?change:=20=E6=96=B0=E7=9A=84=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=B1=A0key=20(#476)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/tarot/tarot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/tarot/tarot.go b/plugin/tarot/tarot.go index 9ba03b8b..4e41157b 100644 --- a/plugin/tarot/tarot.go +++ b/plugin/tarot/tarot.go @@ -152,7 +152,7 @@ func init() { imgname = name } imgpath := cache + "/" + imgname + ".png" - err := pool.SendImageFromPool(imgname, imgpath, func() error { + err := pool.SendImageFromPool("pool"+imgname, imgpath, func() error { data, err := web.RequestDataWith(web.NewTLS12Client(), imgurl, "GET", "gitcode.net", web.RandUA()) if err != nil { return err @@ -326,7 +326,7 @@ func init() { func poolimg(ctx *zero.Ctx, imgurl, imgname, cache string) (msg message.MessageSegment, err error) { imgfile := cache + "/" + imgname + ".png" aimgfile := file.BOTPATH + "/" + imgfile - m, err := pool.GetImage(imgname) + m, err := pool.GetImage("pool" + imgname) if err == nil { msg = message.Image(m.String()) if ctxext.SendToSelf(ctx)(msg) == 0 {