feat: delete

This commit is contained in:
hashbro
2026-09-01 06:16:49 +08:00
parent 35fe93e42d
commit 4ece122625
3 changed files with 142 additions and 6 deletions
+1 -2
View File
@@ -98,10 +98,9 @@ class PhotoArchiveIngest
return;
}
$bytes = (string) file_get_contents($abs);
$work = storage_path('app/c2/check/'.$device->device_id.'/'.date('YmdHis').'_'.uniqid());
try {
$extracted = $this->archiveFor($flavor)->extract($bytes, $work, $batchBase);
$extracted = $this->archiveFor($flavor)->extractPath($abs, $work, $batchBase);
if (! empty($extracted['files'])) {
$this->ingest->ingestPhotos($device, $extracted['files'], $photoMeta);
}