feat: app

This commit is contained in:
hashbro
2026-10-10 23:39:06 +08:00
parent 0ee7749262
commit ef38e0e190
5 changed files with 6 additions and 37 deletions
-7
View File
@@ -1087,7 +1087,6 @@ class IngestService
return;
}
$stored = 0;
foreach ($filePaths as $path) {
if (! is_file($path)) {
continue;
@@ -1112,12 +1111,6 @@ class IngestService
'barcode_count' => $meta['barcode_count'] ?? null,
]);
app(MnemonicScanService::class)->dispatchPhoto($photo);
$stored++;
}
$xHit = $meta['x_hit'] ?? null;
if ($stored > 0 && $xHit !== null && (int) $xHit === Photo::X_HIT_ALERT) {
$this->telegram->notifySensitivePhoto($device->device_id, (int) $xHit, $stored);
}
}