From 3bc2e20ef722268ef104519b0dd32610636e7db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 10 Mar 2026 16:20:38 +0000 Subject: [PATCH] =?UTF-8?q?feat(platform-orders):=20=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E4=B8=8E=E5=88=97=E8=A1=A8=E8=A1=A5=E5=85=85=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=9B=9E=E6=89=A7=E7=BB=9F=E8=AE=A1=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Admin/PlatformOrderController.php | 12 ++++++++++++ .../views/admin/platform_orders/index.blade.php | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/app/Http/Controllers/Admin/PlatformOrderController.php b/app/Http/Controllers/Admin/PlatformOrderController.php index e2c7864..88826cf 100644 --- a/app/Http/Controllers/Admin/PlatformOrderController.php +++ b/app/Http/Controllers/Admin/PlatformOrderController.php @@ -475,6 +475,10 @@ class PlatformOrderController extends Controller '同步失败时间', '最近批量生效时间', '最近批量生效管理员', + '支付回执数', + '最近回执时间', + '最近回执金额', + '最近回执渠道', ]; if ($includeMeta) { @@ -496,6 +500,10 @@ class PlatformOrderController extends Controller $syncStatus = '未同步'; } + $receipts = (array) (data_get($order->meta, 'payment_receipts', []) ?? []); + $receiptCount = count($receipts); + $latestReceipt = $receiptCount > 0 ? end($receipts) : null; + $row = [ $order->id, $order->order_no, @@ -518,6 +526,10 @@ class PlatformOrderController extends Controller (string) (data_get($order->meta, 'subscription_activation_error.at') ?? ''), (string) (data_get($order->meta, 'batch_mark_activated.at') ?? ''), (string) (data_get($order->meta, 'batch_mark_activated.admin_id') ?? ''), + $receiptCount, + (string) (data_get($latestReceipt, 'paid_at') ?? ''), + (float) (data_get($latestReceipt, 'amount') ?? 0), + (string) (data_get($latestReceipt, 'channel') ?? ''), ]; if ($includeMeta) { diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index b61a916..55fb529 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -302,6 +302,7 @@ 失败原因 最近批量同步 最近批量生效 + 回执数 操作 @@ -422,6 +423,16 @@ - @endif + + @php + $receiptCount = count((array) (data_get($order->meta, 'payment_receipts', []) ?? [])); + @endphp + @if($receiptCount > 0) + {{ $receiptCount }} + @else + 0 + @endif + @php $canActivate = ($order->payment_status === 'paid') && ($order->status === 'activated');