Skip to content

Commit

Permalink
fix:修复uploadSliceItem
Browse files Browse the repository at this point in the history
  • Loading branch information
livehigh committed Nov 11, 2021
1 parent d1e0347 commit 6ffd3cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion demo-album/lib/cos-wx-sdk-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -2339,7 +2339,7 @@ base.init(COS, task);
advance.init(COS, task);

COS.getAuthorization = util.getAuth;
COS.version = '1.0.12';
COS.version = '1.0.13';

module.exports = COS;

Expand Down Expand Up @@ -9673,6 +9673,7 @@ function uploadSliceItem(params, callback) {
var ServerSideEncryption = params.ServerSideEncryption;
var UploadData = params.UploadData;
var ChunkRetryTimes = self.options.ChunkRetryTimes + 1;
var Headers = params.Headers || {};

var start = SliceSize * (PartNumber - 1);

Expand Down
3 changes: 2 additions & 1 deletion demo/lib/cos-wx-sdk-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -2339,7 +2339,7 @@ base.init(COS, task);
advance.init(COS, task);

COS.getAuthorization = util.getAuth;
COS.version = '1.0.12';
COS.version = '1.0.13';

module.exports = COS;

Expand Down Expand Up @@ -9673,6 +9673,7 @@ function uploadSliceItem(params, callback) {
var ServerSideEncryption = params.ServerSideEncryption;
var UploadData = params.UploadData;
var ChunkRetryTimes = self.options.ChunkRetryTimes + 1;
var Headers = params.Headers || {};

var start = SliceSize * (PartNumber - 1);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cos-wx-sdk-v5",
"version": "1.0.12",
"version": "1.0.13",
"description": "小程序 SDK for [腾讯云对象存储服务](https://cloud.tencent.com/product/cos)",
"main": "demo/lib/cos-wx-sdk-v5.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/advance.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@ function uploadSliceItem(params, callback) {
var ServerSideEncryption = params.ServerSideEncryption;
var UploadData = params.UploadData;
var ChunkRetryTimes = self.options.ChunkRetryTimes + 1;
var Headers = params.Headers || {};

var start = SliceSize * (PartNumber - 1);

Expand Down
2 changes: 1 addition & 1 deletion src/cos.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ base.init(COS, task);
advance.init(COS, task);

COS.getAuthorization = util.getAuth;
COS.version = '1.0.12';
COS.version = '1.0.13';

module.exports = COS;

0 comments on commit 6ffd3cf

Please sign in to comment.