mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-04 11:22:17 +08:00
fix: fix the CallbackBeforeSendSingleMsg
This commit is contained in:
parent
d3047d73b6
commit
2ebbf46432
@ -81,6 +81,9 @@ func callbackBeforeSendSingleMsg(ctx context.Context, msg *pbchat.SendMsgReq) er
|
|||||||
if err := http.CallBackPostReturn(ctx, cbURL(), req, resp, config.Config.Callback.CallbackBeforeSendSingleMsg); err != nil {
|
if err := http.CallBackPostReturn(ctx, cbURL(), req, resp, config.Config.Callback.CallbackBeforeSendSingleMsg); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if len(resp.Content) != 0 {
|
||||||
|
msg.MsgData.Content = resp.Content
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -25,6 +25,7 @@ type CallbackBeforeSendSingleMsgReq struct {
|
|||||||
|
|
||||||
type CallbackBeforeSendSingleMsgResp struct {
|
type CallbackBeforeSendSingleMsgResp struct {
|
||||||
CommonCallbackResp
|
CommonCallbackResp
|
||||||
|
Content []byte `json:"content"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type CallbackAfterSendSingleMsgReq struct {
|
type CallbackAfterSendSingleMsgReq struct {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user