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