From cab611a720ed049663e21eb1ce2739969492f288 Mon Sep 17 00:00:00 2001 From: Jiang-Red <79574799+Jiang-Red@users.noreply.github.com> Date: Sat, 14 May 2022 00:05:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/saucenao/searcher.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/saucenao/searcher.go b/plugin/saucenao/searcher.go index a0998b7873..455dce1bad 100644 --- a/plugin/saucenao/searcher.go +++ b/plugin/saucenao/searcher.go @@ -129,8 +129,7 @@ func init() { // 插件主体 } }) resp, err := http.Head(result.Header.Thumbnail) - // msg := make(message.Message, 0, 3) - msg := message.Message{ctxext.FakeSenderForwardNode(ctx, message.Text("搜图结果"))} + msg := make(message.Message, 0, 3) if s > 0.8 { msg = append(msg, ctxext.FakeSenderForwardNode(ctx, message.Text("我有把握是这个!"))) } else { @@ -141,7 +140,7 @@ func init() { // 插件主体 } else { msg = append(msg, ctxext.FakeSenderForwardNode(ctx, message.Image(pic))) } - msg = append(msg, ctxext.FakeSenderForwardNode(ctx, message.Text("\n图源: ", result.Header.IndexName, binary.BytesToString(b)))) + msg = append(msg, ctxext.FakeSenderForwardNode(ctx, message.Text("图源: ", result.Header.IndexName, binary.BytesToString(b)))) if id := ctx.SendGroupForwardMessage( ctx.Event.GroupID, msg,