fix(chat): 修正彩票历史记录及明细页中 prize_pool / tickets_count 引用的字段名错误
This commit is contained in:
@@ -79,7 +79,7 @@ class GameHistoryController extends Controller
|
|||||||
$lottery = [
|
$lottery = [
|
||||||
'total_issues' => LotteryIssue::query()->count(),
|
'total_issues' => LotteryIssue::query()->count(),
|
||||||
'total_bets' => LotteryTicket::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(),
|
'today_issues' => LotteryIssue::query()->whereDate('created_at', today())->count(),
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -261,7 +261,7 @@ class GameHistoryController extends Controller
|
|||||||
$summary = [
|
$summary = [
|
||||||
'total_issues' => LotteryIssue::query()->count(),
|
'total_issues' => LotteryIssue::query()->count(),
|
||||||
'total_tickets' => LotteryTicket::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(),
|
'drawn_count' => LotteryIssue::query()->where('status', 'drawn')->count(),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
@endif
|
@endif
|
||||||
</span>
|
</span>
|
||||||
@endif
|
@endif
|
||||||
· 奖池:<span class="font-bold text-amber-600">{{ number_format($issue->prize_pool ?? 0) }}
|
· 奖池:<span class="font-bold text-amber-600">{{ number_format($issue->pool_amount ?? 0) }}
|
||||||
金币</span>
|
金币</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -92,10 +92,10 @@
|
|||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3 text-right font-mono text-xs text-indigo-600 font-bold">
|
<td class="px-4 py-3 text-right font-mono text-xs text-indigo-600 font-bold">
|
||||||
{{ number_format($issue->tickets_count) }}
|
{{ number_format($issue->total_tickets) }}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3 text-right font-mono text-xs text-amber-600 font-bold">
|
<td class="px-4 py-3 text-right font-mono text-xs text-amber-600 font-bold">
|
||||||
{{ number_format($issue->prize_pool) }}
|
{{ number_format($issue->pool_amount) }}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3 text-right">
|
<td class="px-4 py-3 text-right">
|
||||||
<a href="{{ route('admin.game-history.lottery.issue', $issue->id) }}"
|
<a href="{{ route('admin.game-history.lottery.issue', $issue->id) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user