更新token
This commit is contained in:
parent
f993e740d7
commit
36e1bda441
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue