fix(chat): 修正双色球统计开奖期数及奖池时使用了错误的 status 条件
This commit is contained in:
@@ -80,7 +80,7 @@ class GameHistoryController extends Controller
|
||||
$lottery = [
|
||||
'total_issues' => LotteryIssue::query()->count(),
|
||||
'total_bets' => LotteryTicket::query()->count(),
|
||||
'total_pool' => LotteryIssue::query()->where('status', 'drawn')->sum('pool_amount'),
|
||||
'total_pool' => LotteryIssue::query()->where('status', 'settled')->sum('pool_amount'),
|
||||
'today_issues' => LotteryIssue::query()->whereDate('created_at', today())->count(),
|
||||
];
|
||||
|
||||
@@ -272,7 +272,7 @@ class GameHistoryController extends Controller
|
||||
'total_issues' => LotteryIssue::query()->count(),
|
||||
'total_tickets' => LotteryTicket::query()->count(),
|
||||
'total_pool' => (int) LotteryIssue::query()->sum('pool_amount'),
|
||||
'drawn_count' => LotteryIssue::query()->where('status', 'drawn')->count(),
|
||||
'drawn_count' => LotteryIssue::query()->where('status', 'settled')->count(),
|
||||
];
|
||||
|
||||
$issues = LotteryIssue::query()
|
||||
|
||||
Reference in New Issue
Block a user