Skip to content

Commit

Permalink
修改 demo
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Jan 11, 2018
1 parent 13c3044 commit 043bada
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function getBucketVersioning() {
function putBucketReplication() {
var AppId = config.Bucket.substr(config.Bucket.lastIndexOf('-') + 1);
cos.putBucketReplication({
Bucket: config.Bucket,
Bucket: config.Bucket, // Bucket 格式:test-1250000000
Region: config.Region,
ReplicationConfiguration: {
Role: "qcs::cam::uin/459000000:uin/459000000",
Expand All @@ -351,7 +351,7 @@ function putBucketReplication() {
Status: "Enabled",
Prefix: "img/",
Destination: {
Bucket: "qcs::cos:" + config.Region + "::tianjin-" + AppId
Bucket: "qcs::cos:ap-guangzhou::test-" + AppId
},
}]
}
Expand Down Expand Up @@ -380,7 +380,7 @@ function deleteBucketReplication() {

function deleteBucket() {
cos.deleteBucket({
Bucket: 'testnew',
Bucket: 'testnew-' + config.Bucket.substr(config.Bucket.lastIndexOf('-') + 1),
Region: 'ap-guangzhou'
}, function (err, data) {
console.log(err || data);
Expand Down

0 comments on commit 043bada

Please sign in to comment.