From 1d64f6c7b34c69905a27a84db5a0fcd4d54ebb3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 11 Mar 2026 03:35:08 +0000 Subject: [PATCH] =?UTF-8?q?feat(admin):=20=E8=AE=A2=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=A2=9E=E5=8A=A0=E6=9F=A5=E7=9C=8B=E5=B7=B2=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E8=AE=A2=E9=98=85=E5=BF=AB=E6=8D=B7=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/platform_orders/show.blade.php | 10 +++++++++- tests/Feature/AdminPlatformOrderShowTest.php | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/views/admin/platform_orders/show.blade.php b/resources/views/admin/platform_orders/show.blade.php index 41e0675..1e422f4 100644 --- a/resources/views/admin/platform_orders/show.blade.php +++ b/resources/views/admin/platform_orders/show.blade.php @@ -85,7 +85,7 @@ $syncErrorAt = data_get($order->meta, 'subscription_activation_error.at'); @endphp -
+
@csrf @@ -96,6 +96,14 @@
+ @if($order->siteSubscription) + @php + $subBack = '/admin/platform-orders/' . $order->id; + $openSubUrl2 = '/admin/site-subscriptions/' . $order->siteSubscription->id . '?' . \Illuminate\Support\Arr::query(['back' => $subBack]); + @endphp + 查看已同步订阅 + @endif + @php $canMarkActivatedOnly = ($order->payment_status === 'paid') && ($order->status !== 'activated'); @endphp diff --git a/tests/Feature/AdminPlatformOrderShowTest.php b/tests/Feature/AdminPlatformOrderShowTest.php index 8ccc849..a833b13 100644 --- a/tests/Feature/AdminPlatformOrderShowTest.php +++ b/tests/Feature/AdminPlatformOrderShowTest.php @@ -99,6 +99,7 @@ class AdminPlatformOrderShowTest extends TestCase ->assertSee('PO_SHOW_0001') ->assertSee('标记支付并生效') ->assertSee('同步订阅') + ->assertSee('查看已同步订阅') ->assertSee('最近批量生效记录') ->assertSee('订阅同步元数据') ->assertSee('退款时间')