Skip to content

Commit 41d28b7

Browse files
authored
fix: 塔罗牌Gitcode数据源仓库切换到经由镜像的GitHub源 (#1090)
1 parent 8fa91a1 commit 41d28b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugin/tarot/tarot.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/wdvxdr1123/ZeroBot/message"
2424
)
2525

26-
const bed = "https://gitcode.net/shudorcl/zbp-tarot/-/raw/master/"
26+
const bed = "https://github.moeyy.xyz/https://raw.githubusercontent.com/FloatTech/zbpdata/main/Tarot/"
2727

2828
type cardInfo struct {
2929
Description string `json:"description"`
@@ -149,7 +149,7 @@ func init() {
149149
}
150150
imgpath := cache + "/" + imgname + ".png"
151151
err := pool.SendImageFromPool(imgpath, func(pth string) error {
152-
data, err := web.RequestDataWith(web.NewTLS12Client(), imgurl, "GET", "gitcode.net", web.RandUA(), nil)
152+
data, err := web.RequestDataWith(web.NewTLS12Client(), imgurl, "GET", "github.moeyy.xyz", web.RandUA(), nil)
153153
if err != nil {
154154
return err
155155
}
@@ -324,7 +324,7 @@ func poolimg(imgurl, imgname, cache string) (msg message.Segment, err error) {
324324
aimgfile := file.BOTPATH + "/" + imgfile
325325
if file.IsNotExist(aimgfile) {
326326
var data []byte
327-
data, err = web.RequestDataWith(web.NewTLS12Client(), imgurl, "GET", "gitcode.net", web.RandUA(), nil)
327+
data, err = web.RequestDataWith(web.NewTLS12Client(), imgurl, "GET", "github.moeyy.xyz", web.RandUA(), nil)
328328
if err != nil {
329329
return
330330
}

0 commit comments

Comments
 (0)