|
@@ -163,7 +163,7 @@ class Party extends Common
|
|
|
$seatdata = [];
|
|
|
for($i=1;$i<=$seatnum;$i++){
|
|
|
$seat = [
|
|
|
- 'charm' => '', //红心,魅力值
|
|
|
+ 'charm' => 0, //红心,魅力值
|
|
|
|
|
|
'isMaster' => false, // 是否是房主
|
|
|
'headUrl' => '', // 头像
|
|
@@ -175,6 +175,15 @@ class Party extends Common
|
|
|
'isAudioMuted' => 1, // 是否静音
|
|
|
'isVideoMuted' => 0, // 是否开启视频
|
|
|
];
|
|
|
+
|
|
|
+ if($i == 1){
|
|
|
+ $seat['isMaster'] = true;
|
|
|
+ $seat['headUrl'] = localpath_to_netpath($this->auth->avatar);
|
|
|
+ $seat['userNo'] = $this->auth->id;
|
|
|
+ $seat['rtcUid'] = $this->auth->id;
|
|
|
+ $seat['name'] = $this->auth->nickname;
|
|
|
+ }
|
|
|
+
|
|
|
$seatdata['seat'.$i] = json_encode($seat);
|
|
|
}
|
|
|
$rs = $easemob->room_setRoomCustomAttributeForced($easemob_room_id,$this->auth->id,$seatdata);
|