This commit is contained in:
Cüneyt Şentürk 2021-11-17 02:35:25 +03:00
parent 632e43ab6c
commit c045980862

View File

@ -40,6 +40,12 @@ class DownloadFile extends Job
$file = $response->getBody()->getContents();
$json = json_decode($file);
if (is_object($json)) {
throw new \Exception($json->message);
}
$path = 'temp-' . md5(mt_rand());
$temp_path = storage_path('app/temp/' . $path);