mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 06:20:08 +08:00
🐛 fix fortune
This commit is contained in:
parent
7463792de7
commit
cd30d6df31
@ -142,7 +142,7 @@ func init() {
|
|||||||
digest := md5.Sum(helper.StringToBytes(zipfile + strconv.Itoa(index) + title + text))
|
digest := md5.Sum(helper.StringToBytes(zipfile + strconv.Itoa(index) + title + text))
|
||||||
cachefile := cache + hex.EncodeToString(digest[:])
|
cachefile := cache + hex.EncodeToString(digest[:])
|
||||||
|
|
||||||
m, err := imgpool.NewImage(ctx, cachefile, cachefile)
|
m, err := imgpool.NewImage(ctx, cachefile, file.BOTPATH+"/"+cachefile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Debugln("[fortune]", err)
|
logrus.Debugln("[fortune]", err)
|
||||||
if file.IsNotExist(cachefile) {
|
if file.IsNotExist(cachefile) {
|
||||||
@ -158,7 +158,7 @@ func init() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m, err = imgpool.NewImage(ctx, cachefile, cachefile)
|
m, err = imgpool.NewImage(ctx, cachefile, file.BOTPATH+"/"+cachefile)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user