diff --git a/resources/views/admin/platform_orders/show.blade.php b/resources/views/admin/platform_orders/show.blade.php index a6e00c0..b741f3a 100644 --- a/resources/views/admin/platform_orders/show.blade.php +++ b/resources/views/admin/platform_orders/show.blade.php @@ -259,6 +259,15 @@ // 安全阀:续费单必须绑定订阅(后端 activateSubscription 也会阻断,这里做前端提示/禁用) $syncBlockedByMissingSubscriptionOnRenewal = ((string) ($order->order_type ?? '') === 'renewal') && ((int) ($order->site_subscription_id ?? 0) <= 0); + + $missingSubscriptionHelpUrl = ''; + if ($syncBlockedByMissingSubscriptionOnRenewal) { + $missingSubscriptionHelpUrl = \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
@csrf @@ -281,6 +290,10 @@ 当前订单类型为「续费」,但未绑定订阅(site_subscription_id 为空)。 请先补齐订阅关联后再重试同步。 + @if($missingSubscriptionHelpUrl !== '') + + 去订阅管理查找订阅 + @endif @endif