Update plugin_impl.go

This commit is contained in:
cdle
2023-08-01 10:58:45 +08:00
committed by GitHub
parent a6e272b673
commit da445fa62f
+2 -2
View File
@@ -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