chore(governance): block batch activate when refund_status=has

This commit is contained in:
萝卜
2026-03-16 23:03:38 +08:00
parent 8063b8ae9d
commit a26be5de9e
4 changed files with 83 additions and 0 deletions

View File

@@ -68,6 +68,9 @@ class PlatformOrderToolsGuard
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 '当前集合包含「对账不一致/退款不一致」:建议先完成金额/状态治理后再批量同步。';
}