diff --git a/client/client.go b/client/client.go index 2a6aacf4..a3ba7fbc 100644 --- a/client/client.go +++ b/client/client.go @@ -508,7 +508,7 @@ func (c *QQClient) GetForwardMessage(resId string) *message.ForwardMessage { ret = &message.ForwardMessage{Nodes: []*message.ForwardNode{}} ) for _, iter := range m.Items { - if iter.GetFileName() == "MultiMsg" { + if iter.GetFileName() == m.FileName { item = iter } } diff --git a/client/global.go b/client/global.go index efc64ad5..251eb418 100644 --- a/client/global.go +++ b/client/global.go @@ -586,6 +586,7 @@ func genForwardTemplate(resId, preview, title, brief, source, summary string, ts } } return &message.ForwardElement{ + FileName: strconv.FormatInt(ts, 10), Content: template, ResId: resId, Items: items, diff --git a/message/elements.go b/message/elements.go index 3c23b803..5d71dc7e 100644 --- a/message/elements.go +++ b/message/elements.go @@ -103,9 +103,10 @@ type ServiceElement struct { } type ForwardElement struct { - Content string - ResId string - Items []*msg.PbMultiMsgItem + FileName string + Content string + ResId string + Items []*msg.PbMultiMsgItem } type LightAppElement struct {