wangshan 2 月之前
父节点
当前提交
1f81651308
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)