作者 lyh

gx

@@ -34,7 +34,7 @@ class CosService @@ -34,7 +34,7 @@ class CosService
34 ], 34 ],
35 ]); 35 ]);
36 $key = $path.'/'.$filename; 36 $key = $path.'/'.$filename;
37 - $Body = $binary ? $files : fopen($files->getRealPath(), 'r'); 37 + $Body = fopen($files->getRealPath(), 'r');
38 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($Body, true) . PHP_EOL, FILE_APPEND); 38 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($Body, true) . PHP_EOL, FILE_APPEND);
39 $options = [ 39 $options = [
40 'Bucket' => $cos['bucket'], 40 'Bucket' => $cos['bucket'],