SiteSubscription index: refine renewal entry copy and align tests

This commit is contained in:
萝卜
2026-03-15 02:47:55 +00:00
parent df416da7f8
commit 9872296968
3 changed files with 7 additions and 4 deletions

View File

@@ -243,9 +243,12 @@
} }
$createOrderFromSubIndexUrl = \App\Support\BackUrl::withBack('/admin/platform-orders/create?' . \Illuminate\Support\Arr::query($q), $selfWithoutBack); $createOrderFromSubIndexUrl = \App\Support\BackUrl::withBack('/admin/platform-orders/create?' . \Illuminate\Support\Arr::query($q), $selfWithoutBack);
@endphp @endphp
<a class="btn btn-sm" href="{!! $createOrderFromSubIndexUrl !!}">创建续费单(带当前筛选</a> <a class="btn btn-sm" href="{!! $createOrderFromSubIndexUrl !!}">续费单(先选订阅</a>
</div>
<div class="muted muted-xs mt-6">
用于运营从订阅目录快速发起续费下单:会把当前 merchant_id/plan_id 作为默认值带到下单页。
<span class="muted">续费单必须绑定订阅,建议从下方列表行内「续费下单」选择具体订阅。</span>
</div> </div>
<div class="muted muted-xs mt-6">用于运营从订阅目录快速补单/续费:会把当前 merchant_id/plan_id/site_subscription_id 作为默认值带到下单页。</div>
</div> </div>
<div class="card"> <div class="card">

View File

@@ -32,7 +32,7 @@ class AdminSiteSubscriptionIndexCreateRenewalOrderKeepsFiltersShouldCarryRequire
$res->assertOk(); $res->assertOk();
$res->assertSee('创建续费单(带当前筛选', false); $res->assertSee('续费单(先选订阅', false);
$res->assertSee('require_subscription=1', false); $res->assertSee('require_subscription=1', false);
} }
} }

View File

@@ -29,7 +29,7 @@ class AdminSiteSubscriptionIndexExpiryGovernanceRenewalCtaTest extends TestCase
$res->assertSee('创建续费订单(当前集合)'); $res->assertSee('创建续费订单(当前集合)');
// CTA 应带上当前筛选 merchant_id/plan_id并且 back 回到当前列表selfWithoutBack // CTA 应带上当前筛选 merchant_id/plan_id并且 back 回到当前列表selfWithoutBack
$res->assertSee('href="/admin/platform-orders/create?order_type=renewal&merchant_id=2&plan_id=3&back=%2Fadmin%2Fsite-subscriptions%3Fexpiry%3Dexpiring_7d%26merchant_id%3D2%26plan_id%3D3"', false); $res->assertSee('href="/admin/platform-orders/create?order_type=renewal&require_subscription=1&merchant_id=2&plan_id=3&back=%2Fadmin%2Fsite-subscriptions%3Fexpiry%3Dexpiring_7d%26merchant_id%3D2%26plan_id%3D3"', false);
// 链接不应出现 &amp;(只检查该 CTA 的 href 文本中不含 &amp; // 链接不应出现 &amp;(只检查该 CTA 的 href 文本中不含 &amp;
$html = (string) $res->getContent(); $html = (string) $res->getContent();