小时榜

This commit is contained in:
2025-12-22 19:25:38 +08:00
parent d03e1285e4
commit bf02aaad14

View File

@@ -94,7 +94,7 @@ class RoomHourRanking extends Model
$is_open_xlh = db::name('vs_hour_ranking_config')->where('id', 1)->value('is_open_xlh');
// 查询这个时间段内收礼的房间ID集合并实现分页
$room_query = Db::name('vs_give_gift')
->where('from', 2)
->where(['from' => 2, 'from_id' => ['>',0]])
->whereBetween('createtime', [$start_time, $end_time])
->group('from_id')
->field('from_id, SUM(total_price) as total_price');