mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-02-12 18:20:27 +00:00
fix: 缓存池有时无法发出图片
This commit is contained in:
@@ -73,7 +73,14 @@ func init() {
|
||||
return
|
||||
}
|
||||
}
|
||||
ctx.SendChain(message.Image(m.String()))
|
||||
// 发送图片
|
||||
id := ctx.SendChain(message.Image(m.String()))
|
||||
if id.ID() == 0 {
|
||||
id = ctx.SendChain(message.Image(m.String()).Add("cache", "0"))
|
||||
if id.ID() == 0 {
|
||||
ctx.SendChain(message.Text("图片发送失败,可能被风控了~"))
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user