chore(governance): block batch activate when syncable_only conflicts with synced_only
This commit is contained in:
@@ -59,6 +59,9 @@ class PlatformOrderToolsGuard
|
||||
if ($syncStatus !== '' && $syncStatus !== 'unsynced') {
|
||||
return '当前已勾选「只看可同步」,但同步状态筛选不是「未同步」。请先切回 sync_status=unsynced(或清空同步状态筛选)后再批量同步。';
|
||||
}
|
||||
if ((string) ($filters['synced_only'] ?? '') === '1') {
|
||||
return '当前已勾选「只看可同步」,但又勾选了「只看已同步」:两者语义互斥。请先取消只看已同步后再批量同步。';
|
||||
}
|
||||
if ((string) ($filters['fail_only'] ?? '') === '1' || trim((string) ($filters['sync_error_keyword'] ?? '')) !== '') {
|
||||
return '当前筛选包含「同步失败/失败原因」。请先治理失败原因或切回未同步集合,再批量同步。';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user