fix: block BMPA when governance filters present
This commit is contained in:
@@ -1403,6 +1403,11 @@ class PlatformOrderController extends Controller
|
|||||||
if (($filters['status'] ?? '') !== 'pending' || ($filters['payment_status'] ?? '') !== 'unpaid') {
|
if (($filters['status'] ?? '') !== 'pending' || ($filters['payment_status'] ?? '') !== 'unpaid') {
|
||||||
return redirect()->back()->with('warning', '为避免误操作,请先筛选「订单状态=待处理」且「支付状态=未支付」,再执行批量标记支付并生效。');
|
return redirect()->back()->with('warning', '为避免误操作,请先筛选「订单状态=待处理」且「支付状态=未支付」,再执行批量标记支付并生效。');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 治理优先:若当前筛选已包含“对账不一致/退款不一致”等治理集合,则先治理再执行批量推进
|
||||||
|
if ((string) ($filters['reconcile_mismatch'] ?? '') === '1' || (string) ($filters['refund_inconsistent'] ?? '') === '1') {
|
||||||
|
return redirect()->back()->with('warning', '当前筛选包含「对账不一致/退款不一致」治理集合,请先完成回执/退款治理后,再执行批量标记支付并生效。');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 防误操作:scope=all 需要二次确认
|
// 防误操作:scope=all 需要二次确认
|
||||||
|
|||||||
Reference in New Issue
Block a user