chore(governance): block batch mark activated when receipt none/refund has

This commit is contained in:
萝卜
2026-03-16 23:26:29 +08:00
parent 75d64195d6
commit 9dc281f48e
7 changed files with 172 additions and 2 deletions

View File

@@ -132,6 +132,12 @@ class PlatformOrderToolsGuard
if ((string) ($filters['syncable_only'] ?? '') === '1') {
return '当前已勾选「只看可同步」:该集合语义为“已生效(activated)+未同步”,与本动作处理的“待处理(pending)”互斥。请先取消只看可同步后再执行。';
}
if ((string) ($filters['receipt_status'] ?? '') === 'none') {
return '当前集合为「无回执」:为保证收费闭环可治理,建议先补齐支付回执留痕后再批量生效。';
}
if ((string) ($filters['refund_status'] ?? '') === 'has') {
return '当前集合为「有退款」:为避免带退款订单直接批量生效,请先完成退款治理(核对退款回执/修正状态)后再执行。';
}
if (((string) ($filters['reconcile_mismatch'] ?? '') === '1') || ((string) ($filters['refund_inconsistent'] ?? '') === '1')) {
return '当前集合包含「对账不一致/退款不一致」治理集合:建议先完成金额/状态治理(补回执/核对退款/修正状态)后再批量生效。';
}