geschenkgutscheine implementiert ("Paket verschenken"). Neuer Upload-Provider: Sparkbooth.

This commit is contained in:
Codex Agent
2025-12-07 16:54:58 +01:00
parent 3f3c0f1d35
commit 046e2fe3ec
50 changed files with 2422 additions and 130 deletions

View File

@@ -33,7 +33,7 @@ class PhotoboothIngestService
$this->hasPathColumn = Schema::hasColumn('photos', 'path');
}
public function ingest(Event $event, ?int $maxFiles = null): array
public function ingest(Event $event, ?int $maxFiles = null, string $ingestSource = Photo::SOURCE_PHOTOBOOTH): array
{
$tenant = $event->tenant;
@@ -90,7 +90,7 @@ class PhotoboothIngestService
}
try {
$result = $this->importFile($event, $eventPackage, $disk, $importDisk, $file);
$result = $this->importFile($event, $eventPackage, $disk, $importDisk, $file, $ingestSource);
if ($result) {
$processed++;
Storage::disk($importDisk)->delete($file);
@@ -116,6 +116,7 @@ class PhotoboothIngestService
string $destinationDisk,
string $importDisk,
string $file,
string $ingestSource,
): bool {
$stream = Storage::disk($importDisk)->readStream($file);
@@ -191,8 +192,8 @@ class PhotoboothIngestService
'file_path' => $watermarkedPath,
'thumbnail_path' => $watermarkedThumb,
'status' => 'pending',
'guest_name' => Photo::SOURCE_PHOTOBOOTH,
'ingest_source' => Photo::SOURCE_PHOTOBOOTH,
'guest_name' => $ingestSource,
'ingest_source' => $ingestSource,
'ip_address' => null,
];