From 54309b83a28bbca1fccc3d21558736a99fe22248 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Thu, 22 May 2025 14:52:15 +0800 Subject: [PATCH] feat: add group friend rpc interface permission check --- internal/push/push_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/push/push_handler.go b/internal/push/push_handler.go index e88e4b5a9..97e53e69e 100644 --- a/internal/push/push_handler.go +++ b/internal/push/push_handler.go @@ -142,6 +142,7 @@ func (c *ConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim s for msg := range claim.Messages() { ctx := c.pushConsumerGroup.GetContextFromMsg(msg) + ctx = mcontext.WithOpUserIDContext(ctx, c.config.Share.IMAdminUserID[0]) c.handleMs2PsChat(ctx, msg.Value) sess.MarkMessage(msg, "") }