From daf6a0cb2133e0a16f4a526fb145a64a352e5830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sun, 15 Mar 2026 03:55:20 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=94=81=E5=AE=9A=E8=AE=A2=E9=98=85=E7=AD=9B=E9=80=89?= =?UTF-8?q?=E6=97=B6=EF=BC=9A=E6=96=B0=E5=BB=BA=E8=AE=A2=E5=8D=95=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E9=99=84=E5=B8=A6=20require=5Fsubscription=3D1=20?= =?UTF-8?q?=E5=B9=B6=E6=9B=B4=E6=96=B0=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/platform_orders/index.blade.php | 3 +++ ...AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php | 1 + 2 files changed, 4 insertions(+) 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);