腾讯在离线 回调

This commit is contained in:
2025-09-11 17:08:47 +08:00
parent 81e9dfcca0
commit 3fbb4043c7
2 changed files with 76 additions and 72 deletions

View File

@@ -919,11 +919,15 @@ class Tencent extends Model
if($quit_room) {
foreach ($quit_room as &$v){
$text['text'] = '杀进程!';
$text['user_id'] = $uid;
$text['type'] = 0;
model('Chat')->sendMsg(1058,$v['room_id'],$text);
model('Room')->quit_room($v['user_id'], $v['room_id'],$v['user_id']);
$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){
$text['text'] = '掉线!';
$text['user_id'] = $uid;
$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'],1);
}
}
}