修正代码问题

This commit is contained in:
fumiama 2021-10-23 11:51:32 +08:00
parent 09a9dd53fd
commit 3a5e391191

View File

@ -76,9 +76,10 @@ func init() { // 插件主体
if filepath != "" { if filepath != "" {
// 发送搜索结果 // 发送搜索结果
ctx.SendChain(message.Image(filepath), message.Text("\n"), txt) ctx.SendChain(message.Image(filepath), message.Text("\n"), txt)
} } else {
// 图片下载失败,仅发送文字结果 // 图片下载失败,仅发送文字结果
ctx.SendChain(txt) ctx.SendChain(txt)
}
} else { } else {
ctx.SendChain(message.Text("图片不存在!")) ctx.SendChain(message.Text("图片不存在!"))
} }