Skip to content

Commit 066dfa4

Browse files
authored
Merge pull request #50 from zxdstyle/patch-1
切换Bucket之后客户端未重新初始化
2 parents 4f6e379 + c069db6 commit 066dfa4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/OssAdapter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ public function bucket($bucket)
150150
*/
151151
protected function initClient()
152152
{
153-
if (empty($this->client)) {
154-
$this->client = new OssClient($this->accessKeyId, $this->accessKeySecret, $this->endpoint, $this->isCName, ...$this->params);
155-
}
153+
$this->client = new OssClient($this->accessKeyId, $this->accessKeySecret, $this->endpoint, $this->isCName, ...$this->params);
156154
}
157155

158156
/**

0 commit comments

Comments
 (0)