gemercheung 2 年之前
父节点
当前提交
225e3be92c
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/room/actions/actions.service.ts

+ 7 - 4
src/room/actions/actions.service.ts

@@ -30,9 +30,9 @@ export class ActionsService {
       );
     }
     this.roomService.logger.warn(
-      `当前--broadcast:${roomId}, action:${
-        data.type
-      } ,isLeader:${isSocketLeader()}`,
+      `当前--broadcast:${roomId},
+      data:${JSON.stringify(data)}
+       action:${data.type} ,isLeader:${isSocketLeader()}`,
       'handleAllAction',
     );
     switch (data.type) {
@@ -89,7 +89,10 @@ export class ActionsService {
       const roomId = this.roomService._userInfo.RoomId;
       const userId = data.userId;
       const mutedState = data.muted;
-
+      this.roomService.logger.warn(
+        `handleMutedState: roomId->${roomId},userId->${userId},mutedState->${mutedState}`,
+        'handleMutedState',
+      );
       await this.userService.updateUserMicState(roomId, userId, mutedState);
     }
   }