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 3c0bc2c commit f07d85c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,9 @@ function putObject() {
logger.log(JSON.stringify(progressData));
},
// 万象持久化接口,上传时持久化
// '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 @@ -1119,7 +1121,9 @@ function sliceUploadFile() {
Key: '3mb.zip', /* 必须 */
Body: blob,
// 万象持久化接口,上传时持久化
// '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 f07d85c

Please sign in to comment.