diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 9710272..0038a6a 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -231,9 +231,9 @@ $renewCreateUrl = '/admin/platform-orders/create?' . \Illuminate\Support\Arr::query($renewCreateQuery); @endphp -
- 为该订阅创建续费订单 -
+ @php + // 右上角已提供同入口,订阅锁定区不再重复渲染(避免重复 CTA 噪音) + @endphp
订阅治理入口:
diff --git a/tests/Feature/AdminPlatformOrderSubscriptionLockedRenewFlowTest.php b/tests/Feature/AdminPlatformOrderSubscriptionLockedRenewFlowTest.php index 4a6f42c..969a404 100644 --- a/tests/Feature/AdminPlatformOrderSubscriptionLockedRenewFlowTest.php +++ b/tests/Feature/AdminPlatformOrderSubscriptionLockedRenewFlowTest.php @@ -63,6 +63,9 @@ class AdminPlatformOrderSubscriptionLockedRenewFlowTest extends TestCase $res->assertOk(); $res->assertSee('为该订阅创建续费订单', false); + // 去重降噪:中部订阅锁定区不应重复渲染该按钮(右上角主动作区已提供) + $this->assertSame(1, substr_count((string) $res->getContent(), '为该订阅创建续费订单')); + // 2) 点击一键续费下单(直接构造期望 create URL) $expectedCreateUrl = '/admin/platform-orders/create?' . Arr::query([ 'order_type' => 'renewal',