重连后房间处理

This commit is contained in:
2025-09-28 15:48:36 +08:00
parent 3d66a47226
commit 770c9a0fb8
4 changed files with 64 additions and 12 deletions

View File

@@ -932,7 +932,11 @@ class Tencent extends Model
$text['type'] = 2;
model('Chat')->sendMsg(1058,$v['room_id'],$text);
}else{
model('Room')->quit_room($v['user_id'], $v['room_id'],$v['user_id'],2);
//查询是否有切后台的操作
$bg_room = db::name('vs_user_in_room_bg')->where(['room_id' => $v['room_id'],'user_id' => $v['user_id']])->find();
if(!$bg_room){
model('Room')->quit_room($v['user_id'], $v['room_id'],$v['user_id'],2);
}
}
}
}