排行榜

This commit is contained in:
2026-01-09 18:27:00 +08:00
parent fbfc0975dd
commit e293cacd44

View File

@@ -366,20 +366,15 @@ class GiveGiftBases extends Model
$options['end_time'] = $params['end_time']; $options['end_time'] = $params['end_time'];
} }
// 分页参数 // 分页参数
$options['page'] = $params['page'] ?? 1; $options['page'] = $params['page'] ?? 1;
$options['limit'] = min($params['limit'] ?? 20, 100); // 限制最大100条 $options['limit'] = min($params['limit'] ?? 20, 100); // 限制最大100条
$options['group_by'] = 'user_id'; $options['group_by'] = 'user_id';
// 查询数据 // 查询数据
$result = $this->giftModel->getGiftStatisticsRanking($where, $options); $result = $this->giftModel->getGiftStatisticsRanking($where, $options);
// Log::info("查询送礼记录,条件: " . json_encode($where) . ", 结果数: " . count($result['data']));
// $this->success('获取成功', $result);
return $result; return $result;
} }