fix: 修改 GenSendPkg 函数以正确使用 groupID,移除不必要的 userID 字段

This commit is contained in:
lixiangwuxian 2025-04-10 00:58:41 +08:00
parent 0a7d2d63aa
commit 49be7aafb9

View File

@ -45,7 +45,7 @@ func GenSendPkg(userID string, groupID string, message any, autoEscape bool, for
return SendPkg{ return SendPkg{
Action: constants.FORWARD_MSG_SEND, Action: constants.FORWARD_MSG_SEND,
Params: UpstreamParams{ Params: UpstreamParams{
UserID: userID, GroupID: groupID,
Message: message, Message: message,
}, },
} }
@ -53,7 +53,6 @@ func GenSendPkg(userID string, groupID string, message any, autoEscape bool, for
return SendPkg{ return SendPkg{
Action: constants.GROUP_MSG_SEND, Action: constants.GROUP_MSG_SEND,
Params: UpstreamParams{ Params: UpstreamParams{
UserID: userID,
GroupID: groupID, GroupID: groupID,
Message: message, Message: message,
AutoEscape: autoEscape, AutoEscape: autoEscape,