From 3faec79371aba452ede90409dc48a6b4aad8b29a Mon Sep 17 00:00:00 2001 From: fumiama Date: Thu, 7 Oct 2021 12:23:59 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=E8=A7=A3=E5=86=B3hs=20cac?= =?UTF-8?q?he=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_hs/run.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin_hs/run.go b/plugin_hs/run.go index 54ce3a41..5baae174 100644 --- a/plugin_hs/run.go +++ b/plugin_hs/run.go @@ -48,11 +48,11 @@ func init() { return } var sk message.Message - var imgcq string var data []byte for i := 0; i < t && i < 5; i++ { cid := gjson.Get(g, `list.`+strconv.Itoa(i)+`.CardID`).String() cachefile := cachedir + cid + imgcq := `[CQ:image,file=` + "file:///" + cachefile + `]` if _, err := os.Stat(cachefile); err != nil { im, err := req.Get(`https://res.fbigame.com/hs/v13/`+cid+ `.png?auth_key=`+gjson.Get(g, `list.`+strconv.Itoa(i)+`.auth_key`).String(), @@ -69,8 +69,6 @@ func init() { } if err != nil { imgcq = err.Error() - } else { - imgcq = `[CQ:image,file=` + "file:///" + cachefile + `]` } } sk = append(