From 80890b0b9a96c2ef34ef7bfb89fe663a6d33fd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 10 Mar 2026 13:15:04 +0000 Subject: [PATCH] feat(admin): platform orders show subscription id link --- resources/views/admin/platform_orders/index.blade.php | 7 ++++++- tests/Feature/AdminPlatformOrderTest.php | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index b79c170..808c167 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -269,7 +269,12 @@ @if($order->siteSubscription) - {{ $order->siteSubscription->subscription_no }} +
+ {{ $order->siteSubscription->subscription_no }} +
+
+ 订阅ID:{{ $order->siteSubscription->id }} +
@else - @endif diff --git a/tests/Feature/AdminPlatformOrderTest.php b/tests/Feature/AdminPlatformOrderTest.php index 6c54379..790ad9f 100644 --- a/tests/Feature/AdminPlatformOrderTest.php +++ b/tests/Feature/AdminPlatformOrderTest.php @@ -212,7 +212,9 @@ class AdminPlatformOrderTest extends TestCase $this->get('/admin/platform-orders?keyword=PO_SUB_LINK_0001') ->assertOk() ->assertSee('SUB_LINK_0001') - ->assertSee('/admin/site-subscriptions/' . $sub->id); + ->assertSee('/admin/site-subscriptions/' . $sub->id) + ->assertSee('订阅ID:') + ->assertSee('/admin/platform-orders?site_subscription_id=' . $sub->id); // 只看已同步:构造一条带有 subscription_activation 的订单 + 批量同步审计(用于列表展示) PlatformOrder::query()->where('order_no', 'PO202603100101')->update([