Allow batch BMPA tools guard when bmpa_processable_only=1
This commit is contained in:
@@ -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 面向“待处理+未支付”推进链路;若叠加同步治理筛选,语义会混乱,且可能误伤治理集合。
|
||||
|
||||
Reference in New Issue
Block a user