|
...
|
...
|
@@ -80,7 +80,7 @@ class AmazonS3Service |
|
|
|
];
|
|
|
|
$stream_context = stream_context_create($opts);
|
|
|
|
$file_handle = fopen($files, 'rb', null, $stream_context);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($file_handle, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($file_handle.'1111111111', true) . PHP_EOL, FILE_APPEND);
|
|
|
|
if ($file_handle === false) {
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(2222222, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
return '无法打开文件';
|
...
|
...
|
|