vmangos
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Services;
|
||||
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
class GameClientDownloadService
|
||||
@@ -18,6 +19,10 @@ class GameClientDownloadService
|
||||
$objectKey = $this->objectKey();
|
||||
$filename = $this->filename();
|
||||
|
||||
if (! $disk->exists($objectKey)) {
|
||||
throw new RuntimeException('Game client archive is not available.');
|
||||
}
|
||||
|
||||
try {
|
||||
return $disk->temporaryUrl(
|
||||
$objectKey,
|
||||
|
||||
Reference in New Issue
Block a user