加幸运币统计字段-前端加幸运值统计
This commit is contained in:
@@ -331,6 +331,7 @@ class Room extends Model
|
|||||||
//在线数
|
//在线数
|
||||||
$v['online_num'] = db::name('vs_room_visitor')->where('room_id', $v['room_id'])->where('is_delete', 1)->count();
|
$v['online_num'] = db::name('vs_room_visitor')->where('room_id', $v['room_id'])->where('is_delete', 1)->count();
|
||||||
$v['cp_room'] = $cp_room;
|
$v['cp_room'] = $cp_room;
|
||||||
|
$v['lucky_water'] = db::name('vs_room_luck_value')->where('room_id',$v['room_id'])->sum('luck_value');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $roomInfo;
|
return $roomInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user