进入房间 保持心跳
This commit is contained in:
@@ -1048,6 +1048,20 @@ class RoomPit extends Model
|
||||
$text['pit_number'] = $pit_number;
|
||||
//聊天室推送系统消息
|
||||
model('Chat')->sendMsg(1003,$room_id,$text);
|
||||
|
||||
//查找当前用户是否有申请上麦 有就删掉
|
||||
$is_apply_pit = db::name('vs_room_pit_apply')->where(['room_id' => $room_id, 'user_id' => $accept_user_id])->find();
|
||||
if($is_apply_pit){
|
||||
db::name('vs_room_pit_apply')->where(['room_id' => $room_id, 'user_id' => $accept_user_id])->delete();
|
||||
}
|
||||
|
||||
$count = db::name('vs_room_pit_apply')->where(['room_id' => $room_id,'status' => 0])->count();
|
||||
//申请上麦推送消息
|
||||
$text = [
|
||||
'text' => '申请上麦',
|
||||
'count' => $count
|
||||
];
|
||||
model('Chat')->sendMsg(1034,$room_id,$text);
|
||||
return ['code' => 1, 'msg' => '操作成功', 'data' => null];
|
||||
}
|
||||
if($pit_number == 10){
|
||||
|
||||
Reference in New Issue
Block a user