diff --git a/app/Http/Controllers/Admin/GameHistoryController.php b/app/Http/Controllers/Admin/GameHistoryController.php index 74f4683..74ee98d 100644 --- a/app/Http/Controllers/Admin/GameHistoryController.php +++ b/app/Http/Controllers/Admin/GameHistoryController.php @@ -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(), ]; diff --git a/resources/views/admin/game-history/lottery-issue.blade.php b/resources/views/admin/game-history/lottery-issue.blade.php index addcdcd..2ad78c1 100644 --- a/resources/views/admin/game-history/lottery-issue.blade.php +++ b/resources/views/admin/game-history/lottery-issue.blade.php @@ -29,7 +29,7 @@ @endif @endif -  · 奖池:{{ number_format($issue->prize_pool ?? 0) }} +  · 奖池:{{ number_format($issue->pool_amount ?? 0) }} 金币

diff --git a/resources/views/admin/game-history/lottery.blade.php b/resources/views/admin/game-history/lottery.blade.php index e49487a..7b76343 100644 --- a/resources/views/admin/game-history/lottery.blade.php +++ b/resources/views/admin/game-history/lottery.blade.php @@ -92,10 +92,10 @@ @endif - {{ number_format($issue->tickets_count) }} + {{ number_format($issue->total_tickets) }} - {{ number_format($issue->prize_pool) }} + {{ number_format($issue->pool_amount) }}