From 4bd537bd96d759c71c76efd6c35ca3b9a0b74da2 Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 9 Jan 2024 19:42:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=8C=EC=84=B1=EC=B1=84=ED=8C=85=EC=97=90?= =?UTF-8?q?=20mid=20=EB=8C=80=EC=8B=A0=20alias=EB=A1=9C=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- voicechat/eos_impl.go | 6 +++--- voicechat/voice_chat.go | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/voicechat/eos_impl.go b/voicechat/eos_impl.go index d05370c..9f51fdf 100644 --- a/voicechat/eos_impl.go +++ b/voicechat/eos_impl.go @@ -88,7 +88,7 @@ func (gv *eosauth) joinVoiceChat(data JoinVoiceChatRequst) map[string]any { voiceendpoint := fmt.Sprintf("https://api.epicgames.dev/rtc/v1/%s/room/%s", config.EosDeploymentId, data.Gid) participants := eosRoomParticipants{ Participants: []eosRoomParticipantRequests{ - {Puid: data.Mid}, + {Puid: data.Alias}, }, } @@ -114,7 +114,7 @@ func (gv *eosauth) joinVoiceChat(data JoinVoiceChatRequst) map[string]any { participant := par.(map[string]any) channelCredentials := map[string]any{ - "override_userid": data.Mid, + "override_userid": data.Alias, "client_base_url": result["clientBaseUrl"], "participant_token": participant["token"], } @@ -125,7 +125,7 @@ func (gv *eosauth) joinVoiceChat(data JoinVoiceChatRequst) map[string]any { } func (gv *eosauth) leaveVoiceChat(data LeaveVoiceChatRequst) { - voiceendpoint := fmt.Sprintf("https://api.epicgames.dev/rtc/v1/%s/room/%s/participants/%s", config.EosDeploymentId, data.Gid, data.Mid) + voiceendpoint := fmt.Sprintf("https://api.epicgames.dev/rtc/v1/%s/room/%s/participants/%s", config.EosDeploymentId, data.Gid, data.Alias) accessToken := gv.AccessToken req, _ := http.NewRequest("DELETE", voiceendpoint, nil) diff --git a/voicechat/voice_chat.go b/voicechat/voice_chat.go index 94abd0f..f449691 100644 --- a/voicechat/voice_chat.go +++ b/voicechat/voice_chat.go @@ -11,14 +11,13 @@ import ( type JoinVoiceChatRequst struct { Gid string - Mid string - Service string Alias string + Service string } type LeaveVoiceChatRequst struct { Gid string - Mid string + Alias string Service string }