Kaynağa Gözat

Merge branch 'main' of github.com:cdle/sillyplus

1-6 2 yıl önce
ebeveyn
işleme
835feb0912
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      core/plugin_impl.go

+ 2 - 2
core/plugin_impl.go

@@ -442,10 +442,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