Expiry governance: nudge renewal requires subscription context

This commit is contained in:
萝卜
2026-03-15 02:23:19 +00:00
parent e66ac765e0
commit 41463407aa
4 changed files with 82 additions and 0 deletions

View File

@@ -106,6 +106,8 @@
if ($isExpiryView) {
$q = [
'order_type' => 'renewal',
// 续费单必须绑定订阅:集合入口也应尽可能引导到订阅维度续费(批量另行建设)。
'require_subscription' => '1',
];
if ((int) ($filters['merchant_id'] ?? 0) > 0) {
$q['merchant_id'] = (int) $filters['merchant_id'];
@@ -118,6 +120,7 @@
@endphp
@if($isExpiryView)
<a class="btn btn-sm" href="{!! $renewalCtaUrl !!}">创建续费订单(当前集合)</a>
<span class="muted muted-xs">(建议:进入后按订阅维度续费)</span>
@endif
</div>