diff --git a/app/Support/PlatformOrderToolsGuard.php b/app/Support/PlatformOrderToolsGuard.php index 84851d4..d92025e 100644 --- a/app/Support/PlatformOrderToolsGuard.php +++ b/app/Support/PlatformOrderToolsGuard.php @@ -93,8 +93,12 @@ class PlatformOrderToolsGuard return '当前集合为「续费单未绑定订阅」治理集合:请先完成订阅绑定/修复关联后再执行 BMPA。'; } - if ((string) ($filters['status'] ?? '') !== 'pending' || (string) ($filters['payment_status'] ?? '') !== 'unpaid') { - return '请先筛选「订单状态=待处理」且「支付状态=未支付」再执行批量 BMPA。'; + $bmpaProcessableOnly = (string) ($filters['bmpa_processable_only'] ?? '') === '1'; + + if (! $bmpaProcessableOnly) { + if ((string) ($filters['status'] ?? '') !== 'pending' || (string) ($filters['payment_status'] ?? '') !== 'unpaid') { + return '请先筛选「订单状态=待处理」且「支付状态=未支付」(或使用 bmpa_processable_only=1 口径)再执行批量 BMPA。'; + } } // 互斥筛选阻断:BMPA 面向“待处理+未支付”推进链路;若叠加同步治理筛选,语义会混乱,且可能误伤治理集合。