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