mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-29 18:34:04 +08:00
申请入群新增ex等参数
This commit is contained in:
parent
b7200c163c
commit
2e710a84e8
@ -283,6 +283,7 @@ func (g *groupServer) webhookAfterJoinGroup(ctx context.Context, after *config.A
|
|||||||
ReqMessage: req.ReqMessage,
|
ReqMessage: req.ReqMessage,
|
||||||
JoinSource: req.JoinSource,
|
JoinSource: req.JoinSource,
|
||||||
InviterUserID: req.InviterUserID,
|
InviterUserID: req.InviterUserID,
|
||||||
|
Ex: req.Ex,
|
||||||
}
|
}
|
||||||
g.webhookClient.AsyncPost(ctx, cbReq.GetCallbackCommand(), cbReq, &callbackstruct.CallbackAfterJoinGroupResp{}, after)
|
g.webhookClient.AsyncPost(ctx, cbReq.GetCallbackCommand(), cbReq, &callbackstruct.CallbackAfterJoinGroupResp{}, after)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -960,6 +960,8 @@ func (g *groupServer) JoinGroup(ctx context.Context, req *pbgroup.JoinGroupReq)
|
|||||||
InviterUserID: req.InviterUserID,
|
InviterUserID: req.InviterUserID,
|
||||||
JoinTime: time.Now(),
|
JoinTime: time.Now(),
|
||||||
MuteEndTime: time.UnixMilli(0),
|
MuteEndTime: time.UnixMilli(0),
|
||||||
|
JoinSource: req.JoinSource,
|
||||||
|
Ex: req.Ex,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := g.webhookBeforeMembersJoinGroup(ctx, &g.config.WebhooksConfig.BeforeMemberJoinGroup, []*model.GroupMember{groupMember}, group.GroupID, group.Ex); err != nil && err != servererrs.ErrCallbackContinue {
|
if err := g.webhookBeforeMembersJoinGroup(ctx, &g.config.WebhooksConfig.BeforeMemberJoinGroup, []*model.GroupMember{groupMember}, group.GroupID, group.Ex); err != nil && err != servererrs.ErrCallbackContinue {
|
||||||
|
|||||||
@ -194,6 +194,7 @@ type CallbackAfterJoinGroupReq struct {
|
|||||||
ReqMessage string `json:"reqMessage"`
|
ReqMessage string `json:"reqMessage"`
|
||||||
JoinSource int32 `json:"joinSource"`
|
JoinSource int32 `json:"joinSource"`
|
||||||
InviterUserID string `json:"inviterUserID"`
|
InviterUserID string `json:"inviterUserID"`
|
||||||
|
Ex string `json:"ex"`
|
||||||
}
|
}
|
||||||
type CallbackAfterJoinGroupResp struct {
|
type CallbackAfterJoinGroupResp struct {
|
||||||
CommonCallbackResp
|
CommonCallbackResp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user