diff --git a/src/QiniuAdapter.php b/src/QiniuAdapter.php index cf39cbd..b63d6ef 100644 --- a/src/QiniuAdapter.php +++ b/src/QiniuAdapter.php @@ -280,7 +280,7 @@ public function getUrl($path) */ public function read($path) { - $contents = file_get_contents($this->getUrl($path)); + $contents = file_get_contents($this->privateDownloadUrl($path)); return compact('contents', 'path'); } @@ -295,7 +295,7 @@ public function read($path) public function readStream($path) { if (ini_get('allow_url_fopen')) { - $stream = fopen($this->getUrl($path), 'r'); + $stream = fopen($this->privateDownloadUrl($path), 'r'); return compact('stream', 'path'); }