diff --git a/server/websocket/internal/logic/datatransferlogic.go b/server/websocket/internal/logic/datatransferlogic.go index a422e928..fada3747 100644 --- a/server/websocket/internal/logic/datatransferlogic.go +++ b/server/websocket/internal/logic/datatransferlogic.go @@ -108,6 +108,7 @@ func (l *DataTransferLogic) DataTransfer(w http.ResponseWriter, r *http.Request) }*/ // todo user信息是没有的 var userInfo auth.UserInfo + userInfo.UserId = 39 //设置连接 ws := l.setConnPool(conn, userInfo) defer ws.close()