Skip to content

Commit

Permalink
优化 Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Mar 24, 2021
1 parent f07d85c commit 4ca7188
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -911,10 +911,10 @@ function putObject() {
onProgress: function (progressData) {
logger.log(JSON.stringify(progressData));
},
// 万象持久化接口,上传时持久化
// Headers: {
// 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
// },
Headers: {
// 万象持久化接口,上传时持久化
'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
},
}, function (err, data) {
logger.log(err || data);
});
Expand Down Expand Up @@ -1120,10 +1120,10 @@ function sliceUploadFile() {
Region: config.Region,
Key: '3mb.zip', /* 必须 */
Body: blob,
// 万象持久化接口,上传时持久化
// Headers: {
// 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
// },
Headers: {
// 万象持久化接口,上传时持久化
// 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
},
onTaskReady: function (tid) {
TaskId = tid;
},
Expand Down

0 comments on commit 4ca7188

Please sign in to comment.