diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 0b26612..2888efd 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1036,6 +1036,9 @@ } if (trim((string) ($filters['site_subscription_id'] ?? '')) !== '') { $createQuery['site_subscription_id'] = (int) ($filters['site_subscription_id'] ?? 0); + // 治理口径:当从订阅维度锁定进入时,创建页应显式携带 require_subscription=1 + //(即使已带 site_subscription_id,也用于统一口径/便于排查链路来源)。 + $createQuery['require_subscription'] = '1'; } // 线索联动:若当前列表已按 lead_id 锁定,则新建订单也应带上 lead_id,维持闭环追溯 if (trim((string) ($filters['lead_id'] ?? '')) !== '') { diff --git a/tests/Feature/AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php b/tests/Feature/AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php index 10478b9..0fbd2ca 100644 --- a/tests/Feature/AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php +++ b/tests/Feature/AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php @@ -72,6 +72,7 @@ class AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest extends TestCase 'merchant_id' => $merchant->id, 'plan_id' => $plan->id, 'site_subscription_id' => $sub->id, + 'require_subscription' => '1', ]); $res->assertSee($expectedCreateUrl, false);