This commit is contained in:
yj 2024-11-26 14:56:02 +08:00
parent b381a3ad58
commit 93a687c549
1 changed files with 8 additions and 10 deletions

View File

@ -295,7 +295,6 @@ Page({
roomUserList: roomUserListTemp,
})
})
if (item.user.isRoomManager) {
if (this.data.currentRequestSpeakType === 'video') {
await this.postOpenCameraApi(item.user.isRoomManager, userInfo.uid)
} else if (this.data.currentRequestSpeakType === 'audio') {
@ -304,10 +303,9 @@ Page({
await this.postOpenMicrApi(item.user.isRoomManager, userInfo.uid, false)
await this.postOpenCameraApi(false, userInfo.uid)
}
} else {
await this.postOpenCameraApi(false, userInfo.uid)
await this.postOpenMicrApi(false, userInfo.uid, false)
}
this.setData({
currentRequestSpeakType: ''
})
} else {
this.message(`管理员${item.user.isRoomManager ? '设置' : '取消'}${item.user.userName}为发言人`).success()
}