Skip to content

Commit 8819869

Browse files
authored
fix copy (#26)
1 parent 75f5783 commit 8819869

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Qcloud/Cos/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function copy($bucket, $key, $copysource, $options = array()) {
126126
$sourceappid = explode('-',explode('.',$copysource)[0])[1];
127127
$sourceregion = explode('.',$copysource)[2];
128128
$sourcekey = substr(strstr($copysource,'/'),1);
129-
$cosClient = new Client(array('region' => getenv('COS_REGION'),
129+
$cosClient = new Client(array('region' => $sourceregion,
130130
'credentials'=> array(
131131
'appId' => $sourceappid,
132132
'secretId' => $this->secretId,

0 commit comments

Comments
 (0)