Skip to content

Commit f07d85c

Browse files
committed
优化 Demo
1 parent 3c0bc2c commit f07d85c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

demo/demo.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,9 @@ function putObject() {
912912
logger.log(JSON.stringify(progressData));
913913
},
914914
// 万象持久化接口,上传时持久化
915-
// 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
915+
// Headers: {
916+
// 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
917+
// },
916918
}, function (err, data) {
917919
logger.log(err || data);
918920
});
@@ -1119,7 +1121,9 @@ function sliceUploadFile() {
11191121
Key: '3mb.zip', /* 必须 */
11201122
Body: blob,
11211123
// 万象持久化接口,上传时持久化
1122-
// 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
1124+
// Headers: {
1125+
// 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
1126+
// },
11231127
onTaskReady: function (tid) {
11241128
TaskId = tid;
11251129
},

0 commit comments

Comments
 (0)