Allow batch BMPA tools guard when bmpa_processable_only=1

This commit is contained in:
萝卜
2026-03-18 02:25:26 +08:00
parent 3ff16b3d28
commit c09c0a9dcd

View File

@@ -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 面向“待处理+未支付”推进链路;若叠加同步治理筛选,语义会混乱,且可能误伤治理集合。