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 9b338d6 commit 11291df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/qiniuUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ module.exports = {
mode = mode || 1;
url = url.indexOf('1920x1080') == -1 ? url + '_1920x1080.jpg' : url;
url = /^(http|https)/.test(url) ? url : CDN + url;
var imageView = new qiniu.fop.ImageView(mode, width, height, quality);
return imageView.makeRequest(url);
return `${url}?imageView2/${mode}/w/${width}/h/${height}/format/jpg/interlace/1/q/${quality}`
// var imageView = new qiniu.fop.ImageView(mode, width, height, quality);
// return imageView.makeRequest(url);
},

specialFetchToQiniu(imgURL, name) {
Expand Down

0 comments on commit 11291df

Please sign in to comment.