进入房间 连线推送

This commit is contained in:
2025-09-05 19:44:15 +08:00
parent 9b7ba5dc35
commit d481ad72cc
3 changed files with 31 additions and 19 deletions

View File

@@ -98,6 +98,16 @@ class RoomPit extends Model
];
model('Tencent')->batchsendmsg($remind_user,json_encode($content));
}
$reslut = db::name('vs_room_pit_apply')->where(['user_id' => $user_id, 'room_id' => $room_id, 'status' => 0])->delete();
if($reslut){
$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];
}