feat(platform-orders): 列表/导出回执数优先读 payment_summary.count(含测试)

This commit is contained in:
萝卜
2026-03-11 00:33:02 +00:00
parent 80b218bbfb
commit cc6835e19c
3 changed files with 78 additions and 3 deletions

View File

@@ -574,7 +574,9 @@
</td>
<td>
@php
$receiptCount = count((array) (data_get($order->meta, 'payment_receipts', []) ?? []));
$receipts = (array) (data_get($order->meta, 'payment_receipts', []) ?? []);
$receiptSummaryCount = data_get($order->meta, 'payment_summary.count');
$receiptCount = $receiptSummaryCount !== null ? (int) $receiptSummaryCount : count($receipts);
@endphp
@if($receiptCount > 0)
<a href="/admin/platform-orders/{{ $order->id }}" class="muted">{{ $receiptCount }}</a>