From da445fa62fa0e86d0ef67e92ad91581f35f24402 Mon Sep 17 00:00:00 2001 From: cdle <50124752+cdle@users.noreply.github.com> Date: Tue, 1 Aug 2023 10:58:45 +0800 Subject: [PATCH] Update plugin_impl.go --- core/plugin_impl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/plugin_impl.go b/core/plugin_impl.go index 0654cf4..2b1a618 100644 --- a/core/plugin_impl.go +++ b/core/plugin_impl.go @@ -437,10 +437,10 @@ func (sender *SenderJsIplm) Listen(ps ...interface{}) interface{} { } else if len(carry.AllowPlatforms) == 0 { carry.AllowPlatforms = []string{sender.GetPlatform()} } - if carry.UserID != "" { + if carry.UserID == "" { carry.UserID = sender.GetUserID() } - if carry.ChatID != "" { + if carry.ChatID == "" { carry.ChatID = sender.GetChatID() } carry.UUID = sender.UUID