解决店铺接口没有返回正确的banner格式时问题
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -664,6 +664,9 @@ const getBrandBanner = (brandId) => { | @@ -664,6 +664,9 @@ const getBrandBanner = (brandId) => { | ||
664 | }).then((result) => { | 664 | }).then((result) => { |
665 | if (result && result.code === 200) { | 665 | if (result && result.code === 200) { |
666 | if (result.data.banner) { | 666 | if (result.data.banner) { |
667 | + if (result.data.banner.indexOf('?') < 0) { | ||
668 | + result.data.banner += '?imageMogr2/auto-orient/strip/thumbnail/x{height}/crop/{width}x{height}'; | ||
669 | + } | ||
667 | return helpers.image(result.data.banner, 640, 150); | 670 | return helpers.image(result.data.banner, 640, 150); |
668 | } else { | 671 | } else { |
669 | return ''; | 672 | return ''; |
-
mentioned in commit a99f4c85
-
Please register or login to post a comment