typo
This commit is contained in:
parent
632e43ab6c
commit
c045980862
@ -40,6 +40,12 @@ class DownloadFile extends Job
|
|||||||
|
|
||||||
$file = $response->getBody()->getContents();
|
$file = $response->getBody()->getContents();
|
||||||
|
|
||||||
|
$json = json_decode($file);
|
||||||
|
|
||||||
|
if (is_object($json)) {
|
||||||
|
throw new \Exception($json->message);
|
||||||
|
}
|
||||||
|
|
||||||
$path = 'temp-' . md5(mt_rand());
|
$path = 'temp-' . md5(mt_rand());
|
||||||
$temp_path = storage_path('app/temp/' . $path);
|
$temp_path = storage_path('app/temp/' . $path);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user