@@ -800,7 +800,7 @@ |
||
800 | 800 | * |
801 | 801 | * @param string $path 待编码路径 |
802 | 802 | * |
803 | - * @return mixed |
|
803 | + * @return string |
|
804 | 804 | */ |
805 | 805 | private static function cosUrlEncode($path) |
806 | 806 | { |
@@ -259,7 +259,7 @@ |
||
259 | 259 | /** |
260 | 260 | * @param string $path |
261 | 261 | * |
262 | - * @return array|bool |
|
262 | + * @return string |
|
263 | 263 | */ |
264 | 264 | public function read($path) |
265 | 265 | { |
@@ -26,13 +26,13 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | $this->app->make('filesystem') |
29 | - ->extend('cosv3', function ($app, $config) { |
|
30 | - $flysystem = new Filesystem(new Adapter($config)); |
|
31 | - $flysystem->addPlugin(new PutRemoteFile()); |
|
32 | - $flysystem->addPlugin(new PutRemoteFileAs()); |
|
33 | - $flysystem->addPlugin(new GetUrl()); |
|
34 | - return $flysystem; |
|
35 | - }); |
|
29 | + ->extend('cosv3', function ($app, $config) { |
|
30 | + $flysystem = new Filesystem(new Adapter($config)); |
|
31 | + $flysystem->addPlugin(new PutRemoteFile()); |
|
32 | + $flysystem->addPlugin(new PutRemoteFileAs()); |
|
33 | + $flysystem->addPlugin(new GetUrl()); |
|
34 | + return $flysystem; |
|
35 | + }); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |