From 073dabb4f555e65b703e6855f31cb8be340a7b95 Mon Sep 17 00:00:00 2001 From: jason-xt <649223152@qq.com> Date: Tue, 10 Apr 2018 12:42:23 +0800 Subject: [PATCH 1/3] Fix Class "FileNotFoundException' not found Bug --- src/AliOssAdapter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AliOssAdapter.php b/src/AliOssAdapter.php index 54d8703..f9e2200 100644 --- a/src/AliOssAdapter.php +++ b/src/AliOssAdapter.php @@ -7,7 +7,6 @@ namespace Jacobcyl\AliOSS; -use Dingo\Api\Contract\Transformer\Adapter; use League\Flysystem\Adapter\AbstractAdapter; use League\Flysystem\AdapterInterface; use League\Flysystem\Config; @@ -15,7 +14,7 @@ use OSS\Core\OssException; use OSS\OssClient; use Log; -use Symfony\Component\Filesystem\Exception\FileNotFoundException; +use League\Flysystem\FileNotFoundException; class AliOssAdapter extends AbstractAdapter { From 90cba3883d6e48b0e190cf1452cfdb64440fd102 Mon Sep 17 00:00:00 2001 From: jason-xt <649223152@qq.com> Date: Mon, 23 Apr 2018 10:51:13 +0800 Subject: [PATCH 2/3] Update composer.json --- composer.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 03443d1..ecd7ef9 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "jacobcyl/ali-oss-storage", + "name": "jason-xt/aliyun-oss-storage-laravel", "description": "aliyun oss filesystem storage for laravel 5+", "keywords": ["aliyun", "oss", "laravel", "filesystems", "storage"], "homepage": "http://jacobcyl.github.io/Aliyun-oss-storage/", @@ -8,6 +8,10 @@ { "name": "jacobcyl", "email": "cyl.jacob@gmail.com" + }, + { + "name": "jason-xu", + "email": "649223152@qq.com" } ], "require": { From 789cf94f80945b1321a33380c8d5ca2b701063d2 Mon Sep 17 00:00:00 2001 From: jason-xt <649223152@qq.com> Date: Mon, 23 Apr 2018 11:51:49 +0800 Subject: [PATCH 3/3] Update AliOssAdapter.php --- src/AliOssAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AliOssAdapter.php b/src/AliOssAdapter.php index f9e2200..1e2d736 100644 --- a/src/AliOssAdapter.php +++ b/src/AliOssAdapter.php @@ -566,7 +566,7 @@ public function getVisibility($path) */ public function getUrl( $path ) { - if (!$this->has($path)) throw new FileNotFoundException($filePath.' not found'); + //if (!$this->has($path)) throw new FileNotFoundException($filePath.' not found'); return ( $this->ssl ? 'https://' : 'http://' ) . ( $this->isCname ? ( $this->cdnDomain == '' ? $this->endPoint : $this->cdnDomain ) : $this->bucket . '.' . $this->endPoint ) . '/' . ltrim($path, '/'); }