From fbb387bd9f3b25b35cd1a77d75562cfd94bf1e81 Mon Sep 17 00:00:00 2001 From: Jiang-Red <79574799+Jiang-Red@users.noreply.github.com> Date: Sat, 14 May 2022 23:50:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:saucenao=E6=8F=92=E4=BB=B6=E6=90=9C?= =?UTF-8?q?=E5=9B=BE=E7=9B=B8=E4=BC=BC=E5=BA=A6=E5=88=A4=E6=96=AD=20(#228)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/saucenao/searcher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/saucenao/searcher.go b/plugin/saucenao/searcher.go index 6ba350d3..d231b202 100644 --- a/plugin/saucenao/searcher.go +++ b/plugin/saucenao/searcher.go @@ -130,7 +130,7 @@ func init() { // 插件主体 }) resp, err := http.Head(result.Header.Thumbnail) msg := make(message.Message, 0, 3) - if s > 0.8 { + if s > 80.0 { msg = append(msg, message.Text("我有把握是这个!")) } else { msg = append(msg, message.Text("也许是这个?")) @@ -142,7 +142,7 @@ func init() { // 插件主体 } msg = append(msg, message.Text("\n图源: ", result.Header.IndexName, binary.BytesToString(b))) ctx.Send(msg) - if s > 0.8 { + if s > 80.0 { continue } }