酒吧房点击用户头像

This commit is contained in:
2026-01-08 15:08:20 +08:00
parent 7e64fe73a9
commit eddb1e2fc0
3 changed files with 38 additions and 6 deletions

View File

@@ -1009,6 +1009,14 @@ class RoomPit extends Model
return ['code' => 0, 'msg' => '此类型房间 不能上7、8号麦位', 'data' => null];
}
}
if($room_type == 11){
$text['text'] = '邀请你上麦';
$text['user_id'] = $accept_user_id;
$text['pit_number'] = $pit_number;
//聊天室推送系统消息
model('Chat')->sendMsg(1202,$room_id,$text);
return ['code' => 1, 'msg' => '操作成功', 'data' => null];
}
$room_label = db::name('vs_room')->where(['id' => $room_id])->value('label_id');
if($room_type == 1 && $room_label == 2 && !$pit_number){
$res = model('RoomPit')->agree_pit($user_id, $room_id, $accept_user_id,1);