jacobcyl / Aliyun-oss-storage

阿里云OSS laravel storage Filesystem adapter, 打造Laravel最好的OSS Storage扩展.
http://jacobcyl.github.io/Aliyun-oss-storage/
MIT License
521 stars 161 forks source link

图片不存在会报异常类不存在 #88

Open sh24th opened 3 years ago

sh24th commented 3 years ago

Class 'Symfony\Component\Filesystem\Exception\FileNotFoundException' not found 在laravel8.x中 public function getUrl( $path ) { 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, '/'); }