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('退款时间')