From cbcf1777bc48ff4d85eef77011e4bc50abfdc110 Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Mon, 15 Jan 2024 18:19:23 +0800 Subject: [PATCH] fix: change the loof judge condition --- internal/api/msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/msg.go b/internal/api/msg.go index f530391a9..1361d7e2b 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -411,7 +411,7 @@ func (m *MessageApi) CallbackExample(c *gin.Context) { apiresp.GinSuccess(c, resp) imAdmin := config.Config.IMAdmin.UserID[0] - if req.SendID == imAdmin || (req.SendID != imAdmin && req.SendID != imAdmin) { + if req.SendID == imAdmin { return }