排行榜

This commit is contained in:
2026-01-09 18:12:03 +08:00
parent 334dca1b5d
commit 413ff05221

View File

@@ -545,11 +545,12 @@ class GiveGiftBase extends Model
SUM(total_price) as total_price,
SUM(total_count) as total_count
FROM ({$unionSql}) as tmp";
var_dump(121212121);
}
var_dump($finalSql);
try {
$result = Db::query($finalSql, $params);
var_dump($result);
return $options['group_by'] ? $result : ($result[0] ?? []);
} catch (\Exception $e) {
Log::error("统计送礼数据失败: " . $e->getMessage());