更新token

This commit is contained in:
yj 2025-01-16 14:50:10 +08:00
parent f993e740d7
commit 36e1bda441
1 changed files with 3 additions and 3 deletions

View File

@ -815,7 +815,7 @@ const Meeting: React.FC = () => {
if (userId) {
GetRoomRtcToken(state.channelId + 'a').then(async res => {
if (res.code === 200) {
await agora.allJoinChannelEx(false, res.data.token)
await agora.allJoinChannelEx(false, res.data)
}
})
} else {
@ -1185,7 +1185,7 @@ const Meeting: React.FC = () => {
await GetRoomRtcToken(connection.channelId || '').then(res => {
if (res.code === 200) {
agora.refreshToken({
token: res.data.token,
token: res.data,
connection,
})
}
@ -1683,7 +1683,7 @@ const Meeting: React.FC = () => {
if (!statusList.userVideo) {
GetRoomRtcToken(state.channelId + 'a').then(async res => {
if (res.code === 200) {
await agora.allJoinChannelEx(true, res.data.token)
await agora.allJoinChannelEx(true, res.data)
}
})
} else {