|
@@ -317,6 +317,8 @@ class Party extends Api
|
|
|
'chorusSongCode' => '', // 是否合唱
|
|
|
'isAudioMuted' => 1, // 是否静音
|
|
|
'isVideoMuted' => 0, // 是否开启视频
|
|
|
+ 'checked' => false, // 用于送礼物选择用户
|
|
|
+ 'isUsed' => true, // 用于送礼物选择用户
|
|
|
];
|
|
|
|
|
|
//创建完房间就进入,所以房主直接在麦位1
|
|
@@ -442,6 +444,8 @@ class Party extends Api
|
|
|
'chorusSongCode' => '', // 是否合唱
|
|
|
'isAudioMuted' => 1, // 是否静音
|
|
|
'isVideoMuted' => 0, // 是否开启视频
|
|
|
+ 'checked' => false, // 用于送礼物选择用户
|
|
|
+ 'isUsed' => true, // 用于送礼物选择用户
|
|
|
];
|
|
|
|
|
|
$seatdata['seat'.$i] = json_encode($seat);
|
|
@@ -1464,6 +1468,8 @@ class Party extends Api
|
|
|
'chorusSongCode' => '', // 是否合唱
|
|
|
'isAudioMuted' => 1, // 是否静音
|
|
|
'isVideoMuted' => 0, // 是否开启视频
|
|
|
+ 'checked' => false, // 用于送礼物选择用户
|
|
|
+ 'isUsed' => true, // 用于送礼物选择用户
|
|
|
];
|
|
|
|
|
|
if(empty($seatlist)){
|
|
@@ -2305,6 +2311,8 @@ class Party extends Api
|
|
|
'chorusSongCode' => '', // 是否合唱
|
|
|
'isAudioMuted' => 1, // 是否静音
|
|
|
'isVideoMuted' => 0, // 是否开启视频
|
|
|
+ 'checked' => false, // 用于送礼物选择用户
|
|
|
+ 'isUsed' => true, // 用于送礼物选择用户
|
|
|
];
|
|
|
}else{
|
|
|
$seatdata = json_decode($seatdata[$key],true);
|
|
@@ -2557,8 +2565,8 @@ class Party extends Api
|
|
|
|
|
|
//轮询所有房间,挨个初始化自定义属性
|
|
|
public function room_task(){
|
|
|
- exit;
|
|
|
- $ids = Db::name('party')->select();
|
|
|
+
|
|
|
+ $ids = Db::name('party')->where('id',1)->select();
|
|
|
|
|
|
$easemob = new Easemob();
|
|
|
foreach($ids as $key => $party){
|
|
@@ -2571,7 +2579,7 @@ class Party extends Api
|
|
|
'party_logo' => localpath_to_netpath($party['party_logo']),//logo
|
|
|
'is_public' => $party['is_public'],//是否公开
|
|
|
'room_type' => $party['room_type'],//房间类型
|
|
|
- 'online_user_num' => json_encode($online_user_num),//当前房间在线的人
|
|
|
+ 'online_user_num' => 0,//当前房间在线的人
|
|
|
'wealth_top3_userlist' => json_encode([]),//财富榜前3个人列表
|
|
|
'background' => '',//背景图
|
|
|
];
|
|
@@ -2592,6 +2600,8 @@ class Party extends Api
|
|
|
'chorusSongCode' => '', // 是否合唱
|
|
|
'isAudioMuted' => 1, // 是否静音
|
|
|
'isVideoMuted' => 0, // 是否开启视频
|
|
|
+ 'checked' => false, // 用于送礼物选择用户
|
|
|
+ 'isUsed' => true, // 用于送礼物选择用户
|
|
|
];
|
|
|
|
|
|
//创建完房间就进入,所以房主直接在麦位1
|