Refactor image (#419)

This commit is contained in:
himawari
2022-09-17 14:53:25 +08:00
committed by GitHub
parent 598a255e34
commit d3ab1e1560
7 changed files with 23 additions and 24 deletions

View File

@@ -81,9 +81,7 @@ func sendYmgal(y ymgal, ctx *zero.Ctx) {
for _, v := range strings.Split(y.PictureList, ",") {
m = append(m, ctxext.FakeSenderForwardNode(ctx, message.Image(v)))
}
if id := ctx.SendGroupForwardMessage(
ctx.Event.GroupID,
m).Get("message_id").Int(); id == 0 {
if id := ctx.Send(m).ID(); id == 0 {
ctx.SendChain(message.Text("ERROR: 可能被风控了"))
}
}