From 3a5e391191d9bd3394284a60218880df9617323e Mon Sep 17 00:00:00 2001 From: fumiama Date: Sat, 23 Oct 2021 11:51:32 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E4=BF=AE=E6=AD=A3=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_saucenao/searcher.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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("图片不存在!")) }