Skip to content

Commit

Permalink
修改图片获取的路径
Browse files Browse the repository at this point in the history
  • Loading branch information
hutiance committed Jul 8, 2024
1 parent 9d5f49d commit 8fa9b5d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions plugin/tarot/tarot.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@ func init() {
if p == 1 {
description = card.ReverseDescription
}
//imgurl := bed + reverse[p] + card.ImgURL
imgname := ""
if p == 1 {
imgname = reverse[p][:len(reverse[p])-1] + name
} else {
imgname = name
}
imgpath := cache + "/" + imgname + ".png"
imgurl := reverse[p] + card.ImgURL
//imgname := ""
//if p == 1 {
// imgname = reverse[p][:len(reverse[p])-1] + name
//} else {
// imgname = name
//}
//imgpath := cache + "/" + imgname + ".png"

img0, err := engine.GetCustomLazyData(bed, imgpath)
img0, err := engine.GetCustomLazyData(bed, imgurl)
if err != nil {
ctx.SendChain(message.Text("ERROR: ", err))
return
Expand Down

0 comments on commit 8fa9b5d

Please sign in to comment.