Skip to content

Commit 32bc51b

Browse files
authored
doc(*):修复type error并切换COS_SECRET*->SECRET* (#196)
- 将totol修改为total - 将COS_SECRETID修改为SECRETID、COS_SECRETKEY修改为SECRETKEY,防止混淆
1 parent cdca218 commit 32bc51b

File tree

80 files changed

+174
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+174
-174
lines changed

sample/abortMultipartUpload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
88
$cosClient = new Qcloud\Cos\Client(
99
array(

sample/blindWatermark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
88
$cosClient = new Qcloud\Cos\Client(
99
array(

sample/catchException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
88
$cosClient = new Qcloud\Cos\Client(
99
array(

sample/ciTransformation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
88
$cosClient = new Qcloud\Cos\Client(
99
array(

sample/completeMultipartUpload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
88
$cosClient = new Qcloud\Cos\Client(
99
array(

sample/copy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
88
$cosClient = new Qcloud\Cos\Client(
99
array(

sample/copyObject.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
88
$cosClient = new Qcloud\Cos\Client(
99
array(

sample/cosClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$token = "COS_TMPTOKEN"; //"云 API 临时密钥 Token"
88
$region = "ap-beijing"; //设置一个默认的存储桶地域
99
$cosClient = new Qcloud\Cos\Client(

sample/createBucket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
88
$cosClient = new Qcloud\Cos\Client(
99
array(

sample/createFolder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
require dirname(__FILE__) . '/../vendor/autoload.php';
44

5-
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
6-
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
5+
$secretId = "SECRETID"; //"云 API 密钥 SecretId";
6+
$secretKey = "SECRETKEY"; //"云 API 密钥 SecretKey";
77
$region = "ap-beijing"; //设置一个默认的存储桶地域
88
$cosClient = new Qcloud\Cos\Client(
99
array(

0 commit comments

Comments
 (0)