gemercheung 2 lat temu
rodzic
commit
225e3be92c
1 zmienionych plików z 7 dodań i 4 usunięć
  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);
     }
   }