chore(billing-ui): align renewal defaults and tighten sync error keyword links
This commit is contained in:
@@ -69,8 +69,9 @@ class PlatformOrderController extends Controller
|
||||
$defaults['order_type'] = 'new_purchase';
|
||||
}
|
||||
|
||||
// 续费下单场景:若带了 site_subscription_id,则当前阶段强制视为续费单(避免语义混乱)。
|
||||
if ($siteSubscriptionId > 0) {
|
||||
// 续费下单场景:若带了 site_subscription_id,且未显式指定 order_type,则默认视为续费。
|
||||
// 说明:允许用户在“带订阅上下文”的情况下显式选择 new_purchase(用于特殊补单/演示等场景),避免 UI 与测试口径冲突。
|
||||
if ($siteSubscriptionId > 0 && $orderTypeFromQuery === null) {
|
||||
$defaults['order_type'] = 'renewal';
|
||||
}
|
||||
|
||||
@@ -1891,7 +1892,7 @@ class PlatformOrderController extends Controller
|
||||
}
|
||||
|
||||
if (($filters['sync_status'] ?? '') !== 'unsynced') {
|
||||
return redirect()->back()->with('warning', '为避免把同步失败等异常单混入,请先锁定「同步状态=未同步(sync_status=unsynced)」(建议用快捷筛选「待生效」)再执行批量仅标记为已生效。');
|
||||
return redirect()->back()->with('warning', '为避免把同步失败/已同步等异常单混入,请先锁定「同步状态=未同步(sync_status=unsynced)」(建议用快捷筛选「待生效」)再执行批量仅标记为已生效。');
|
||||
}
|
||||
|
||||
// 互斥筛选阻断:避免“待生效”批量动作在其它治理集合上误触(或误以为会命中失败单/已同步单/可同步单)。
|
||||
|
||||
Reference in New Issue
Block a user