Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public Guzzle\Service\Resource\Model getObject(array $args = array());
$args是包含以下字段的关联数组:

| 字段名 | 类型 | 默认值 | 是否必填字段 | 描述 |
| :------: | :------------: | :--: | :--------: | :----------------------------------: |
| :------: | :------------: | :--: | :--------: | :----------------------------------: |
| Bucket | string | 无 | 是 | bucket名称 |
| Key | string | 无 | 是 | 对象名称 |
| SaveAs | string | 无 | 否 | 保存到本地的本地文件路径 |
Expand Down Expand Up @@ -253,8 +253,6 @@ $signedUrl = $cosClient->getObjectUrl($bucket, $key, '+10 minutes');
```
### 使用临时密钥

#### 示例

```php
$cosClient = new Qcloud\Cos\Client(
array(
Expand All @@ -265,4 +263,4 @@ $cosClient = new Qcloud\Cos\Client(
'secretId' => '',
'secretKey' => '',
'token' => '')));
```

2 changes: 1 addition & 1 deletion cos-autoloader-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$ext = pathinfo($path, PATHINFO_EXTENSION);
if ($ext === 'php') {
$namespace = preg_replace('/.php$/s', '', $path);
$namespace = str_replace('/', '\\', $namespace);
$path = str_replace('\\', '/', $path);
echo " '$namespace' => 'src/$path',\n";
}
}
Expand Down
Loading