From 41d28b71bf5c8cd94337aae7cbcc8f5c646d870b Mon Sep 17 00:00:00 2001 From: catboss <64726041+win-syswow64@users.noreply.github.com> Date: Mon, 6 Jan 2025 13:08:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A1=94=E7=BD=97=E7=89=8CGitcode?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90=E4=BB=93=E5=BA=93=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=B0=E7=BB=8F=E7=94=B1=E9=95=9C=E5=83=8F=E7=9A=84GitHub?= =?UTF-8?q?=E6=BA=90=20(#1090)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/tarot/tarot.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/tarot/tarot.go b/plugin/tarot/tarot.go index 176d13e056..e94473d7f9 100644 --- a/plugin/tarot/tarot.go +++ b/plugin/tarot/tarot.go @@ -23,7 +23,7 @@ import ( "github.com/wdvxdr1123/ZeroBot/message" ) -const bed = "https://gitcode.net/shudorcl/zbp-tarot/-/raw/master/" +const bed = "https://github.moeyy.xyz/https://raw.githubusercontent.com/FloatTech/zbpdata/main/Tarot/" type cardInfo struct { Description string `json:"description"` @@ -149,7 +149,7 @@ func init() { } imgpath := cache + "/" + imgname + ".png" err := pool.SendImageFromPool(imgpath, func(pth string) error { - data, err := web.RequestDataWith(web.NewTLS12Client(), imgurl, "GET", "gitcode.net", web.RandUA(), nil) + data, err := web.RequestDataWith(web.NewTLS12Client(), imgurl, "GET", "github.moeyy.xyz", web.RandUA(), nil) if err != nil { return err } @@ -324,7 +324,7 @@ func poolimg(imgurl, imgname, cache string) (msg message.Segment, err error) { aimgfile := file.BOTPATH + "/" + imgfile if file.IsNotExist(aimgfile) { var data []byte - data, err = web.RequestDataWith(web.NewTLS12Client(), imgurl, "GET", "gitcode.net", web.RandUA(), nil) + data, err = web.RequestDataWith(web.NewTLS12Client(), imgurl, "GET", "github.moeyy.xyz", web.RandUA(), nil) if err != nil { return }