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": { diff --git a/src/AliOssAdapter.php b/src/AliOssAdapter.php index 54d8703..1e2d736 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 { @@ -567,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, '/'); }