fix: 使用node上报合并转发
This commit is contained in:
parent
ec92baf5bc
commit
cd92d05a18
@ -35,11 +35,8 @@ func help(msg model.Message) *model.Reply {
|
||||
nodeMsg.Data.UserID = "123456789"
|
||||
nodeMsg.Data.Nickname = "test"
|
||||
nodeMsg.Data.Content = []any{textMsg}
|
||||
forwardMsg := message.NewForwardMessage()
|
||||
forwardMsg.Data.ID = "10086"
|
||||
forwardMsg.Data.Content = []any{nodeMsg}
|
||||
return &model.Reply{
|
||||
ReplyMsg: []any{&forwardMsg},
|
||||
ReplyMsg: []any{&nodeMsg},
|
||||
ReferOriginMsg: false,
|
||||
FromMsg: msg,
|
||||
}
|
||||
|
@ -13,8 +13,8 @@ type ForwardMessage struct {
|
||||
}
|
||||
|
||||
type ForwardMessageData struct {
|
||||
ID string `json:"id"` // 转发消息ID
|
||||
Content []interface{} `json:"content,omitempty"` // 转发消息内容
|
||||
ID string `json:"id"` // 转发消息ID
|
||||
Content []any `json:"content,omitempty"` // 转发消息内容
|
||||
}
|
||||
|
||||
// NodeMessage 转发消息节点
|
||||
@ -24,10 +24,10 @@ type NodeMessage struct {
|
||||
}
|
||||
|
||||
type NodeMessageData struct {
|
||||
ID string `json:"id,omitempty"` // 转发消息ID
|
||||
UserID string `json:"user_id,omitempty"` // 发送者QQ号
|
||||
Nickname string `json:"nickname,omitempty"` // 发送者昵称
|
||||
Content []interface{} `json:"content,omitempty"` // 消息内容
|
||||
ID string `json:"id,omitempty"` // 转发消息ID
|
||||
UserID string `json:"user_id,omitempty"` // 发送者QQ号
|
||||
Nickname string `json:"nickname,omitempty"` // 发送者昵称
|
||||
Content []any `json:"content,omitempty"` // 消息内容
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
@ -15,7 +15,7 @@ type GroupInfo struct {
|
||||
}
|
||||
|
||||
type Reply struct {
|
||||
ReplyMsg interface{} `json:"replyMsg"`
|
||||
ReferOriginMsg bool `json:"referOriginMsg"`
|
||||
FromMsg Message `json:"fromMsg"`
|
||||
ReplyMsg any `json:"replyMsg"`
|
||||
ReferOriginMsg bool `json:"referOriginMsg"`
|
||||
FromMsg Message `json:"fromMsg"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user