From 0383ceba589f2b7e2a2b7a673d3ce112b7e114d9 Mon Sep 17 00:00:00 2001 From: Rain Cheung Date: Mon, 21 Aug 2017 16:50:50 +0800 Subject: [PATCH] =?UTF-8?q?qiniu=E4=B8=8A=E4=BC=A0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新版本的qiniu sdk qiniu.rs.Client 已改成 qiniu.rs.BucketManager --- core/utils/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils/common.js b/core/utils/common.js index 777c0c1a..14fdffd7 100644 --- a/core/utils/common.js +++ b/core/utils/common.js @@ -209,7 +209,7 @@ common.uploadFileToQiniu = function (key, filePath) { qiniu.conf.ACCESS_KEY = _.get(config, "qiniu.accessKey"); qiniu.conf.SECRET_KEY = _.get(config, "qiniu.secretKey"); var bucket = _.get(config, "qiniu.bucketName", ""); - var client = new qiniu.rs.Client(); + var client = new qiniu.rs.BucketManager(); client.stat(bucket, key, (err, ret) => { if (!err) { resolve(ret.hash);