diff --git a/resources/views/admin/platform_orders/show.blade.php b/resources/views/admin/platform_orders/show.blade.php index 2ca5380..41bb86d 100644 --- a/resources/views/admin/platform_orders/show.blade.php +++ b/resources/views/admin/platform_orders/show.blade.php @@ -429,6 +429,37 @@ @else
该订单尚未关联订阅(site_subscription_id 为空)。
+ + @php + $isRenewalMissingSubscription = ((string) ($order->order_type ?? '') === 'renewal') + && ((int) ($order->site_subscription_id ?? 0) <= 0); + + $missingSubHelpUrlForRelationBlock = ''; + if ($isRenewalMissingSubscription) { + $missingSubHelpUrlForRelationBlock = \App\Support\BackUrl::withBack('/admin/site-subscriptions?' . \Illuminate\Support\Arr::query([ + 'merchant_id' => (int) ($order->merchant_id ?? 0) ?: null, + 'plan_id' => (int) ($order->plan_id ?? 0) ?: null, + 'page' => null, + ]), $orderShowSelf); + } + @endphp + + @if($isRenewalMissingSubscription) +