Skip to content

Commit fbb387b

Browse files
authored
fix:saucenao插件搜图相似度判断 (#228)
1 parent 0db2db4 commit fbb387b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/saucenao/searcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func init() { // 插件主体
130130
})
131131
resp, err := http.Head(result.Header.Thumbnail)
132132
msg := make(message.Message, 0, 3)
133-
if s > 0.8 {
133+
if s > 80.0 {
134134
msg = append(msg, message.Text("我有把握是这个!"))
135135
} else {
136136
msg = append(msg, message.Text("也许是这个?"))
@@ -142,7 +142,7 @@ func init() { // 插件主体
142142
}
143143
msg = append(msg, message.Text("\n图源: ", result.Header.IndexName, binary.BytesToString(b)))
144144
ctx.Send(msg)
145-
if s > 0.8 {
145+
if s > 80.0 {
146146
continue
147147
}
148148
}

0 commit comments

Comments
 (0)