update callback args condition.

This commit is contained in:
mo3et 2025-09-26 14:38:27 +08:00
parent fce3c9d9ba
commit e8d7286548

View File

@ -64,10 +64,12 @@ func (mc *OnlineHistoryMongoConsumerHandler) webhookAfterMsgSaveDB(ctx context.C
CommonCallbackReq: toCommonCallback(ctx, msg, cbapi.CallbackAfterMsgSaveDBCommand),
}
if msg.RecvID != "" {
switch msg.SessionType {
case constant.SingleChatType, constant.NotificationChatType:
cbReq.RecvID = msg.RecvID
} else if msg.GroupID != "" {
case constant.ReadGroupChatType:
cbReq.GroupID = msg.GroupID
default:
}
mc.webhookClient.AsyncPostWithQuery(ctx, cbReq.GetCallbackCommand(), cbReq, &cbapi.CallbackAfterMsgSaveDBResp{}, after, buildKeyMsgDataQuery(msg))