From 76f8ea960733efc25a904c1e822ca0a6a568b12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sun, 15 Mar 2026 04:00:54 +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=E8=AE=A2=E9=98=85=E9=94=81=E5=AE=9A=E7=AD=9B=E9=80=89?= =?UTF-8?q?=EF=BC=9A=E6=96=B0=E5=BB=BA=E8=AE=A2=E5=8D=95=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E6=98=BE=E5=BC=8F=E5=B8=A6=20order=5Ftype=3Drenewal=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 | 6 ++++-- ...inPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 2888efd..4639833 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1036,9 +1036,11 @@ } if (trim((string) ($filters['site_subscription_id'] ?? '')) !== '') { $createQuery['site_subscription_id'] = (int) ($filters['site_subscription_id'] ?? 0); - // 治理口径:当从订阅维度锁定进入时,创建页应显式携带 require_subscription=1 - //(即使已带 site_subscription_id,也用于统一口径/便于排查链路来源)。 + // 治理口径:当从订阅维度锁定进入时: + // 1) 显式声明 require_subscription=1(统一来源口径/便于排查链路来源) + // 2) 显式声明 order_type=renewal(语义更清晰;create 页仍会二次强制兜底) $createQuery['require_subscription'] = '1'; + $createQuery['order_type'] = 'renewal'; } // 线索联动:若当前列表已按 lead_id 锁定,则新建订单也应带上 lead_id,维持闭环追溯 if (trim((string) ($filters['lead_id'] ?? '')) !== '') { diff --git a/tests/Feature/AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php b/tests/Feature/AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php index 0fbd2ca..e55cf41 100644 --- a/tests/Feature/AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php +++ b/tests/Feature/AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest.php @@ -73,6 +73,7 @@ class AdminPlatformOrderIndexCreateLinkPrefillFromFiltersTest extends TestCase 'plan_id' => $plan->id, 'site_subscription_id' => $sub->id, 'require_subscription' => '1', + 'order_type' => 'renewal', ]); $res->assertSee($expectedCreateUrl, false);