离线推送 暂停了
This commit is contained in:
@@ -946,12 +946,12 @@ class Tencent extends Model
|
|||||||
$text['type'] = 1;
|
$text['type'] = 1;
|
||||||
model('Chat')->sendMsg(1058,$room,$text);
|
model('Chat')->sendMsg(1058,$room,$text);
|
||||||
}elseif ($action == 'Logout'){
|
}elseif ($action == 'Logout'){
|
||||||
Db::name('user')->where('id', $uid)->update(['is_online' => 0, 'updatetime' => time()]);
|
// Db::name('user')->where('id', $uid)->update(['is_online' => 0, 'updatetime' => time()]);
|
||||||
$room = Db::name('vs_room_visitor')->where('user_id', $uid)->order('id desc')->value('room_id');
|
// $room = Db::name('vs_room_visitor')->where('user_id', $uid)->order('id desc')->value('room_id');
|
||||||
$text['text'] = '掉线!';
|
// $text['text'] = '掉线!';
|
||||||
$text['user_id'] = $uid;
|
// $text['user_id'] = $uid;
|
||||||
$text['type'] = 2;
|
// $text['type'] = 2;
|
||||||
model('Chat')->sendMsg(1058,$room,$text);
|
// model('Chat')->sendMsg(1058,$room,$text);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user