✏️ str byte 转换改用 zb 的工具

This commit is contained in:
fumiama
2021-10-14 19:51:24 +08:00
parent cccea70db1
commit 98b21d0fdf
4 changed files with 9 additions and 24 deletions

View File

@@ -17,6 +17,7 @@ import (
"github.com/fogleman/gg"
zero "github.com/wdvxdr1123/ZeroBot"
"github.com/wdvxdr1123/ZeroBot/message"
"github.com/wdvxdr1123/ZeroBot/utils/helper"
"github.com/FloatTech/ZeroBot-Plugin/control"
"github.com/FloatTech/ZeroBot-Plugin/data"
@@ -145,7 +146,7 @@ func init() {
return
}
// 发送图片
ctx.SendChain(message.Image("base64://" + data.Bytes2str(d)))
ctx.SendChain(message.Image("base64://" + helper.BytesToString(d)))
})
}