Browse Source

创建房间,房主不上麦

lizhen_gitee 1 year ago
parent
commit
df20499682
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Party.php

+ 2 - 2
application/api/controller/Party.php

@@ -285,14 +285,14 @@ class Party extends Api
             ];
             ];
 
 
             //创建完房间就进入,所以房主直接在麦位0
             //创建完房间就进入,所以房主直接在麦位0
-            if($i == 0){
+            /*if($i == 0){
                 $seat['isMaster'] = true;
                 $seat['isMaster'] = true;
                 $seat['headUrl']  = localpath_to_netpath($this->auth->avatar);
                 $seat['headUrl']  = localpath_to_netpath($this->auth->avatar);
                 $seat['userNo']   = $this->auth->id;
                 $seat['userNo']   = $this->auth->id;
                 $seat['rtcUid']   = $this->auth->id;
                 $seat['rtcUid']   = $this->auth->id;
                 $seat['name']     = $this->auth->nickname;
                 $seat['name']     = $this->auth->nickname;
                 $seat['seatIndex'] = $i;
                 $seat['seatIndex'] = $i;
-            }
+            }*/
 
 
             $seatdata['seat'.$i] = json_encode($seat);
             $seatdata['seat'.$i] = json_encode($seat);
         }
         }