gemercheung 3 лет назад
Родитель
Сommit
007de5682c
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      socket.js

+ 4 - 1
socket.js

@@ -349,7 +349,10 @@ export default {
     console.log('进入房间角色,', this.role);
 
     const isAuthMic = await this.getAuthorizeRecordStatus();
+    
     console.log('当前用户录音权限状态', isAuthMic)
+
+    const assistantId = (assistant && assistant.userId) ? assistant.userId : '';
     return {
       role: this.role,
       userId: userInfo.userId,
@@ -362,7 +365,7 @@ export default {
       roomId: roomId,
       sceneNumber: sceneId,
       onlineStatus: 1,
-      assistantId: assistant.userId || '',
+      assistantId: assistantId,
       userLimitNum: capacities || 50
     }
   },