diff --git a/internal/rpc/msg/callback.go b/internal/rpc/msg/callback.go index 8e2f00f5a..1d371ce3a 100644 --- a/internal/rpc/msg/callback.go +++ b/internal/rpc/msg/callback.go @@ -135,6 +135,8 @@ func callbackWordFilter(msg *pbChat.SendMsgReq) (canSend bool, err error) { commonCallbackReq.CallbackCommand = constant.CallbackWordFilterCommand req := cbApi.CallbackWordFilterReq{ CommonCallbackReq: commonCallbackReq, + GroupID: msg.MsgData.GroupID, + RecvID: msg.MsgData.RecvID, } resp := &cbApi.CallbackWordFilterResp{CommonCallbackResp: cbApi.CommonCallbackResp{}} //utils.CopyStructFields(&req., msg.MsgData) diff --git a/pkg/call_back_struct/message.go b/pkg/call_back_struct/message.go index 31c215ea2..d2c8e75eb 100644 --- a/pkg/call_back_struct/message.go +++ b/pkg/call_back_struct/message.go @@ -39,6 +39,8 @@ type CallbackAfterSendGroupMsgResp struct { type CallbackWordFilterReq struct { CommonCallbackReq + RecvID string `json:"recvID,omitempty"` + GroupID string `json:"groupID,omitempty"` } type CallbackWordFilterResp struct {