错误屏蔽

This commit is contained in:
2025-09-24 22:52:40 +08:00
parent 8a60cc55f9
commit f1879d1905
3 changed files with 145 additions and 129 deletions

View File

@@ -926,7 +926,7 @@ class Tencent extends Model
if($quit_room) {
foreach ($quit_room as $v){
$room_type = db::name('vs_room')->where(['id' => $v['room_id'],'room_status' => 1])->field('step,type_id')->find();
if(($room_type['type_id'] == 7 && ($room_type['step'] == 2 ||$room_type['step'] == 3)) || $room_type == 2){
if(isset($room_type) && ($room_type['type_id'] == 7 && ($room_type['step'] == 2 ||$room_type['step'] == 3)) || $room_type == 2){
$text['text'] = '掉线!';
$text['user_id'] = $uid;
$text['type'] = 2;