diff --git a/resources/views/admin/platform_orders/show.blade.php b/resources/views/admin/platform_orders/show.blade.php index a4ae746..2ca5380 100644 --- a/resources/views/admin/platform_orders/show.blade.php +++ b/resources/views/admin/platform_orders/show.blade.php @@ -342,11 +342,31 @@ @php $canMarkActivatedOnly = ($order->payment_status === 'paid') && ($order->status !== 'activated'); + // 安全阀:续费单未绑定订阅时,不允许“仅标记为已生效”(后端 markActivated 也会阻断) + $markActivatedBlockedByMissingSubscriptionOnRenewal = ((string) ($order->order_type ?? '') === 'renewal') + && ((int) ($order->site_subscription_id ?? 0) <= 0); @endphp
+ + @if($markActivatedBlockedByMissingSubscriptionOnRenewal) +