fix(发票预览): 回扫时替换工作簿旧预览 (#1524)

This commit is contained in:
yueyang 2026-11-27 16:57:03 +08:00
parent e058927cdd
commit 5f1348db4b

View File

@ -743,8 +743,7 @@ class DingInvoiceSyncService
if (count($flowPreviewFallbacks) === 1) {
$fallback = reset($flowPreviewFallbacks);
foreach ($remainingExisting as $existing) {
if (! str_starts_with((string) ($existing['ocr_provider'] ?? ''), 'imported_workbook')
|| ! empty($existing['preview_path'])) {
if (! str_starts_with((string) ($existing['ocr_provider'] ?? ''), 'imported_workbook')) {
continue;
}
$this->connection->table('ding_invoice_record_mirror')