Governance: block clear sync errors when synced_only present

This commit is contained in:
萝卜
2026-03-17 00:13:19 +08:00
parent c0e3dffce1
commit 0e8a9797b9
4 changed files with 101 additions and 0 deletions

View File

@@ -167,6 +167,10 @@ class PlatformOrderToolsGuard
return '当前已勾选「只看可同步」:该集合与「同步失败」互斥,请先取消只看可同步或切到失败集合后再清理。';
}
if ((string) ($filters['synced_only'] ?? '') === '1') {
return '当前已勾选「只看已同步」:该集合与「同步失败」治理集合无关,请先取消只看已同步或切到失败集合后再清理。';
}
$hasAnyFailedScope = ($syncStatus === 'failed')
|| ((string) ($filters['fail_only'] ?? '') === '1')
|| (trim((string) ($filters['sync_error_keyword'] ?? '')) !== '');