wangshan 2 miesięcy temu
rodzic
commit
1f81651308
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      services/sse/sse.go

+ 1 - 1
services/sse/sse.go

@@ -34,7 +34,7 @@ func (s *ServerSentRouter) Notify() {
 		userId = common.InterfaceToStr(s.Session().Id())
 	}
 	//userId = s.GetString("userId")
-	logger.Info("params  userId:", s.GetString("userId"))
+	logger.Info(userId, "params  userId:", s.GetString("userId"))
 	if userId != "" {
 		// 创建用户专属的消息通道
 		messageChan := make(chan string)