腾讯在离线 回调
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user