1
0
forked from lxh/go-wxhelper

🎨 逻辑完善

This commit is contained in:
李寻欢 2024-03-07 09:49:37 +08:00
parent 797821e2ed
commit 22474efc57
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}