fix(chat): 修正彩票历史记录及明细页中 prize_pool / tickets_count 引用的字段名错误

This commit is contained in:
2026-03-12 08:50:23 +08:00
parent 9e1e5fb7db
commit a6b0c24b66
3 changed files with 5 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ class GameHistoryController extends Controller
$lottery = [
'total_issues' => LotteryIssue::query()->count(),
'total_bets' => LotteryTicket::query()->count(),
'total_pool' => LotteryIssue::query()->where('status', 'drawn')->sum('prize_pool'),
'total_pool' => LotteryIssue::query()->where('status', 'drawn')->sum('pool_amount'),
'today_issues' => LotteryIssue::query()->whereDate('created_at', today())->count(),
];
@@ -261,7 +261,7 @@ class GameHistoryController extends Controller
$summary = [
'total_issues' => LotteryIssue::query()->count(),
'total_tickets' => LotteryTicket::query()->count(),
'total_pool' => (int) LotteryIssue::query()->sum('prize_pool'),
'total_pool' => (int) LotteryIssue::query()->sum('pool_amount'),
'drawn_count' => LotteryIssue::query()->where('status', 'drawn')->count(),
];