Skip to content

Commit

Permalink
fixed qiniu imageView error
Browse files Browse the repository at this point in the history
  • Loading branch information
xCss committed Jan 12, 2018
1 parent 11291df commit 1e02e4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ var random = function(req, res, next) {
var data = rs[0];
if (config.resolutions.indexOf(size) === -1) {
data['url'] = qiniuUtils.imageView(data.qiniu_url, w, h);
console.log(data.url)
} else {
data['url'] = CDN + data.qiniu_url + '_' + size + '.jpg';
}
Expand Down

0 comments on commit 1e02e4e

Please sign in to comment.