Aliyun-oss-storage icon indicating copy to clipboard operation
Aliyun-oss-storage copied to clipboard

$filePath

Open zongmi opened this issue 7 years ago • 2 comments

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, '/'); }

zongmi avatar Oct 18 '17 12:10 zongmi

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, '/');
}

zongmi avatar Oct 18 '17 12:10 zongmi

修复了getUrl文件不存在报错的问题,和使用自定义域名(cdn)上传报错的问题: https://github.com/ziyeziye/Aliyun-oss-storage

ziyeziye avatar Dec 23 '20 05:12 ziyeziye