Skip to content

Commit

Permalink
fix:saucenao插件搜图相似度判断 (FloatTech#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang-Red committed May 14, 2022
1 parent 0db2db4 commit fbb387b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/saucenao/searcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("也许是这个?"))
Expand All @@ -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
}
}
Expand Down

0 comments on commit fbb387b

Please sign in to comment.