Skip to content

Commit

Permalink
更新编译缓存
Browse files Browse the repository at this point in the history
  • Loading branch information
王正东 committed Jan 28, 2021
1 parent caf3a7b commit b43bb8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/bootstrap/cache/compiled.php
Original file line number Diff line number Diff line change
Expand Up @@ -36642,7 +36642,7 @@ public function read($path)
{
try {
$res = $this->aliyunClient->getObject($path);
return ['contents' => $res->getObjectContent()];
return ['contents' => (string) $res];
} catch (OSSException $e) {
$this->errors->add($e->getCode(), $e->getMessage());
return false;
Expand All @@ -36652,9 +36652,9 @@ public function readStream($path)
{
try {
$res = $this->aliyunClient->getObject($path);
$url = $res->getHeader('oss-request-url');
$handle = fopen($url, 'r');
return ['stream' => $handle];
$stream = $res->getObjectContent();
rewind($stream);
return ['stream' => $stream];
} catch (OSSException $e) {
$this->errors->add($e->getCode(), $e->getMessage());
return false;
Expand Down

0 comments on commit b43bb8c

Please sign in to comment.