Showing
1 changed file
with
10 additions
and
2 deletions
@@ -247,7 +247,7 @@ class ShopProcess | @@ -247,7 +247,7 @@ class ShopProcess | ||
247 | } | 247 | } |
248 | 248 | ||
249 | if (strpos($val['brandIco'], 'imageView/') === false) { | 249 | if (strpos($val['brandIco'], 'imageView/') === false) { |
250 | - $val['brandIco'] = $val['brandIco'] . '?imageView/2/w/{width}/h/{height}'; | 250 | + $val['brandIco'] = $val['brandIco'] . '?imageView/{mode}/w/{width}/h/{height}'; |
251 | } | 251 | } |
252 | 252 | ||
253 | $brand['img'] = Images::getImageUrl($val['brandIco'], 140, 120); | 253 | $brand['img'] = Images::getImageUrl($val['brandIco'], 140, 120); |
@@ -271,7 +271,15 @@ class ShopProcess | @@ -271,7 +271,15 @@ class ShopProcess | ||
271 | if (empty($slide['data'][0])) { | 271 | if (empty($slide['data'][0])) { |
272 | continue; | 272 | continue; |
273 | } | 273 | } |
274 | - self::$shopData['bannerTop']['list'][] = array('url' => $slide['data'][0]['url'], 'img' => str_replace('http:', '', $slide['data'][0]['src']) . '?imageView/2/format/jpg/w/640/h/310/q/80'); | 274 | + |
275 | + if (strpos($slide['data'][0]['src'], 'imageView/') === false) { | ||
276 | + $slide['data'][0]['src'] = $slide['data'][0]['src'] . '?imageView/{mode}/w/{width}/h/{height}'; | ||
277 | + } | ||
278 | + | ||
279 | + $slide['data'][0]['src'] = Images::getImageUrl($slide['data'][0]['src'], 640, 310, 1); | ||
280 | + | ||
281 | + | ||
282 | + self::$shopData['bannerTop']['list'][] = array('url' => $slide['data'][0]['url'], 'img' => $slide['data'][0]['src']); | ||
275 | } | 283 | } |
276 | } | 284 | } |
277 | 285 |
-
Please register or login to post a comment