diff --git a/src/components/JoinSetting/index.tsx b/src/components/JoinSetting/index.tsx index 3fabbae..1ab759f 100644 --- a/src/components/JoinSetting/index.tsx +++ b/src/components/JoinSetting/index.tsx @@ -71,7 +71,7 @@ const JoinSetting = forwardRef((_props: any, ref: any) => { }) } const getRoomRtcToken = async (roomNum: string, callBack: Function): Promise => { - Promise.all([GetRoomRtcToken(roomNum), GetRoomRtcToken(roomNum + 'a')]).then(res => { + Promise.all([GetRoomRtcToken(roomNum), GetRoomRtcToken(roomNum + '1')]).then(res => { if (res[0].code === 200 && res[1].code === 200) { callBack({ token: res[0].data, diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index dff415a..48004fa 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -929,7 +929,7 @@ const Meeting: React.FC = () => { break; case '会议监控': window.electron.oepnWindow({ - url: location.origin + `/#/userVideo?channelId=${state.channelId + 'a'}&token=${state.tokenA}` + url: location.origin + `/#/userVideo?channelId=${state.channelId + '1'}&token=${state.tokenA}` }) break; } diff --git a/src/page/UserVideo/index.tsx b/src/page/UserVideo/index.tsx index decea6b..5c06ab3 100644 --- a/src/page/UserVideo/index.tsx +++ b/src/page/UserVideo/index.tsx @@ -74,7 +74,7 @@ const UserVideo: React.FC = () => { } // 获取轮训用户 const getPolling = async (): Promise => { - GetPolling(getQueryParameterRegex('channelId')?.split('a')[0] as string, from.viewPeopleValue).then((res: any) => { + GetPolling(getQueryParameterRegex('channelId')?.split('1')[0] as string, from.viewPeopleValue).then((res: any) => { if (res.code === 200) { setUserList(res.data) } diff --git a/src/utils/package/agora.ts b/src/utils/package/agora.ts index f4792a9..824cf22 100644 --- a/src/utils/package/agora.ts +++ b/src/utils/package/agora.ts @@ -222,7 +222,7 @@ const agora = { allJoinChannelEx: async () => { await rtcEngine.joinChannelEx( option.tokenA, - { channelId: option.channelId + 'a', localUid: Number('1' + option.screenShareId) }, + { channelId: option.channelId + '1', localUid: Number('1' + option.screenShareId) }, { autoSubscribeAudio: false,//设置是否自动订阅所有音频流 autoSubscribeVideo: false,//设置是否自动订阅所有视频流