Governance: block batch mark activated when renewal missing subscription filter present
This commit is contained in:
@@ -1874,6 +1874,11 @@ class PlatformOrderController extends Controller
|
||||
'refund_inconsistent' => (string) $request->input('refund_inconsistent', ''),
|
||||
];
|
||||
|
||||
// 防误操作(治理优先):续费单未绑定订阅属于高风险治理集合,不允许直接批量仅标记为已生效。
|
||||
if ($scope === 'filtered' && ((string) ($filters['renewal_missing_subscription'] ?? '') === '1')) {
|
||||
return redirect()->back()->with('warning', '当前筛选为「续费单未绑定订阅」治理集合。为避免带病推进,请先完成订阅绑定/修复关联后再批量仅标记为已生效。');
|
||||
}
|
||||
|
||||
// 防误操作:批量“仅标记为已生效”默认要求当前筛选口径为「已支付 + 待处理(pending) + 未同步(unsynced)」
|
||||
if ($scope === 'filtered') {
|
||||
if (($filters['payment_status'] ?? '') !== 'paid' || ($filters['status'] ?? '') !== 'pending') {
|
||||
|
||||
Reference in New Issue
Block a user