Skip to content

Commit ecfa89a

Browse files
committed
更新存储插件
1 parent 6ee4f4c commit ecfa89a

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

content/storage/qiniu-store/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ QINIUStore.prototype.save = function (image) {
4545
var uptoken = putPolicy.token();
4646
var key = options.prefix + filename;
4747

48-
console.log( 'QINIUStore::UPLOAD filename=', filename );
48+
// console.log( 'QINIUStore::UPLOAD filename=', filename );
4949
// console.log( 'QINIUStore::image.path=', image.path );
5050
// console.log( 'QINIUStore::qiniu.conf=', qiniu.conf );
5151
// console.log( 'QINIUStore::uptoken=', uptoken );
52-
console.log( 'QINIUStore::UPLOAD key=', key );
52+
// console.log( 'QINIUStore::UPLOAD key=', key );
5353

5454
// 上传文件到云存储
5555
qiniu.io.putFile(uptoken, key, image.path, null, function(err, ret) {
@@ -64,7 +64,7 @@ QINIUStore.prototype.save = function (image) {
6464
// ret.key & ret.hash
6565
} else {
6666
// 上传失败, 处理返回代码
67-
// console.log('QINIUStore save ERROR:' , err );
67+
console.log('QINIUStore save ERROR:' , err );
6868
return reject( err );
6969
}
7070
});
@@ -82,8 +82,8 @@ QINIUStore.prototype.exists = function (filename ) {
8282
var key = options.prefix + filename;
8383
var client = new qiniu.rs.Client();
8484

85-
console.log( 'QINIUStore::CHECK key=', key );
86-
console.log( 'QINIUStore::CHECK filename=', filename );
85+
// console.log( 'QINIUStore::CHECK key=', key );
86+
// console.log( 'QINIUStore::CHECK filename=', filename );
8787

8888
client.stat( options.bucket , key, function(err, ret) {
8989
if (!err) {
@@ -118,7 +118,6 @@ QINIUStore.prototype.serve = function () {
118118
res.redirect( 301, options.protocol + '://' + options.domain + '/' + options.prefix + mountPoint + req.path );
119119
// next();
120120
};
121-
122121
};
123122

124123
module.exports = QINIUStore;

0 commit comments

Comments
 (0)