更新token
This commit is contained in:
parent
f993e740d7
commit
36e1bda441
|
|
@ -815,7 +815,7 @@ const Meeting: React.FC = () => {
|
||||||
if (userId) {
|
if (userId) {
|
||||||
GetRoomRtcToken(state.channelId + 'a').then(async res => {
|
GetRoomRtcToken(state.channelId + 'a').then(async res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
await agora.allJoinChannelEx(false, res.data.token)
|
await agora.allJoinChannelEx(false, res.data)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -1185,7 +1185,7 @@ const Meeting: React.FC = () => {
|
||||||
await GetRoomRtcToken(connection.channelId || '').then(res => {
|
await GetRoomRtcToken(connection.channelId || '').then(res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
agora.refreshToken({
|
agora.refreshToken({
|
||||||
token: res.data.token,
|
token: res.data,
|
||||||
connection,
|
connection,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -1683,7 +1683,7 @@ const Meeting: React.FC = () => {
|
||||||
if (!statusList.userVideo) {
|
if (!statusList.userVideo) {
|
||||||
GetRoomRtcToken(state.channelId + 'a').then(async res => {
|
GetRoomRtcToken(state.channelId + 'a').then(async res => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
await agora.allJoinChannelEx(true, res.data.token)
|
await agora.allJoinChannelEx(true, res.data)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue