|
...
|
...
|
@@ -54,7 +54,7 @@ class AmazonS3Service |
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('ok:'.$result['ObjectURL'], true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return $result['ObjectURL'];
|
|
|
|
} catch (S3Exception $e) {
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('失败', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('失败'.$e, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|