Skip to content

Commit

Permalink
无法获取七牛下载地址
Browse files Browse the repository at this point in the history
添加七牛下载链接获取
  • Loading branch information
chinachuner committed Aug 24, 2017
1 parent ff07696 commit bf22375
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/utils/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ common.getBlobDownloadUrl = function (blobUrl) {
downloadUrl = _.get(config, 's3.downloadUrl');
} else if (_.get(config, 'common.storageType') === 'oss') {
downloadUrl = _.get(config, 'oss.downloadUrl');
}else if (_.get(config, 'common.storageType') === 'qiniu') {
downloadUrl = _.get(config, 'qiniu.downloadUrl');
}
return `${downloadUrl}/${fileName}`
};
Expand Down

0 comments on commit bf22375

Please sign in to comment.