Comparing version 7.3.0 to 7.3.1
## CHANGE LOG | ||
## 7.3.1 | ||
新增归档存储解冻接口 | ||
支持上传时key值为空字符串 | ||
## v7.3.0 | ||
@@ -4,0 +8,0 @@ - 新增 19 个bucket及文件相关操作 |
{ | ||
"name": "qiniu", | ||
"version": "7.3.0", | ||
"version": "7.3.1", | ||
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -109,3 +109,3 @@ const conf = require('../conf'); | ||
postForm.field('token', uploadToken); | ||
if (key) { | ||
if (key != null) { | ||
postForm.field('key', key); | ||
@@ -112,0 +112,0 @@ } |
@@ -976,2 +976,10 @@ const querystring = require('querystring'); | ||
//解冻归档存储文件 | ||
BucketManager.prototype.restoreAr = function (entry, freezeAfterDays, callbackFunc) { | ||
var scheme = this.config.useHttpsDomain ? 'https://' : 'http://'; | ||
var requestURI = scheme + conf.RS_QBOX + "/restoreAr/"+util.urlsafeBase64Encode(entry)+"/freezeAfterDays/"+freezeAfterDays; | ||
var digest = util.generateAccessToken(this.mac, requestURI, null); | ||
rpc.postWithoutForm(requestURI, digest, callbackFunc); | ||
}; | ||
// 上传策略 | ||
@@ -978,0 +986,0 @@ // @link https://developer.qiniu.com/kodo/manual/1206/put-policy |
115037
2839