房间用户列表
This commit is contained in:
@@ -215,7 +215,7 @@ class Room extends BaseCom
|
|||||||
{
|
{
|
||||||
$room_id = input('room_id', 0);
|
$room_id = input('room_id', 0);
|
||||||
$page = input('page', 1);
|
$page = input('page', 1);
|
||||||
$limit = input('limit', 5);
|
$limit = input('limit', 15);
|
||||||
$reslut = model('Room')->room_online_list($room_id, $page, $limit);
|
$reslut = model('Room')->room_online_list($room_id, $page, $limit);
|
||||||
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
return V($reslut['code'], $reslut['msg'], $reslut['data']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1800,7 +1800,7 @@ class Room extends Model
|
|||||||
|
|
||||||
|
|
||||||
//房间在线列表
|
//房间在线列表
|
||||||
public function room_online_list($room_id, $page = 1, $limit = 5)
|
public function room_online_list($room_id, $page = 1, $limit = 15)
|
||||||
{
|
{
|
||||||
if (!$room_id) {
|
if (!$room_id) {
|
||||||
return ['code' => 0, 'msg' => '参数错误'];
|
return ['code' => 0, 'msg' => '参数错误'];
|
||||||
@@ -1845,7 +1845,7 @@ class Room extends Model
|
|||||||
$offPitUser = db::name('vs_room_visitor')->alias('a')
|
$offPitUser = db::name('vs_room_visitor')->alias('a')
|
||||||
->join('user b', 'a.user_id = b.id')
|
->join('user b', 'a.user_id = b.id')
|
||||||
->field('a.user_id,b.nickname,b.avatar,b.hide_status,a.is_onpit')
|
->field('a.user_id,b.nickname,b.avatar,b.hide_status,a.is_onpit')
|
||||||
->where(['a.room_id' => $room_id])
|
->where(['a.room_id' => $room_id,'a.is_onpit' => 1])
|
||||||
->page($page, $pg)
|
->page($page, $pg)
|
||||||
->select();
|
->select();
|
||||||
if(!empty($offPitUser)){
|
if(!empty($offPitUser)){
|
||||||
|
|||||||
Reference in New Issue
Block a user