From 22474efc57c7be11875301c9c82c9edc17b5f1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Thu, 7 Mar 2024 09:49:37 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=80=BB=E8=BE=91=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mq/handler.go | 2 +- tcpserver/parse.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mq/handler.go b/mq/handler.go index b24a61b..223014b 100644 --- a/mq/handler.go +++ b/mq/handler.go @@ -23,7 +23,7 @@ func parse(msg []byte) { m.Raw = string(msg) // 如果不是自己的消息,直接返回 - if m.FromUser == current.GetRobotInfo().WxId { + if m.ToUser == current.GetRobotInfo().WxId { return } diff --git a/tcpserver/parse.go b/tcpserver/parse.go index ceaacff..6f3b35d 100644 --- a/tcpserver/parse.go +++ b/tcpserver/parse.go @@ -24,7 +24,7 @@ func parse(remoteAddr net.Addr, msg []byte) { m.Raw = string(msg) // 如果不是自己的消息,直接返回 - if m.FromUser == current.GetRobotInfo().WxId { + if m.ToUser == current.GetRobotInfo().WxId { return }