mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
fix:saucenao插件搜图相似度判断 (#228)
This commit is contained in:
parent
0db2db482f
commit
fbb387bd9f
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user