Showing
1 changed file
with
8 additions
and
1 deletions
@@ -50,9 +50,16 @@ class HelperHome | @@ -50,9 +50,16 @@ class HelperHome | ||
50 | { | 50 | { |
51 | $result = array(); | 51 | $result = array(); |
52 | foreach ($product as $key => $val) { | 52 | foreach ($product as $key => $val) { |
53 | + $img = (isset($val['default_images']) && $val['default_images'])?Images::getImageUrl($val['default_images'], 100, 100) : ''; | ||
54 | + | ||
55 | + // 强制对图片进行切图规则处理 redmine:12390 | ||
56 | + if (strpos($img, 'imageView')) { | ||
57 | + $img = strstr($img, 'imageView', true) . 'imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70'; | ||
58 | + } | ||
59 | + | ||
53 | $result[] = array( | 60 | $result[] = array( |
54 | 'href' => Helpers::getUrlBySkc($val['product_id'], $val['goods_list'][0]['product_skc'], $val['cn_alphabet']), | 61 | 'href' => Helpers::getUrlBySkc($val['product_id'], $val['goods_list'][0]['product_skc'], $val['cn_alphabet']), |
55 | - 'thumb' => (isset($val['default_images']) && $val['default_images'])?Images::getImageUrl($val['default_images'], 400, 500) : '', | 62 | + 'thumb' => $img, |
56 | 'name' => $val['product_name'], | 63 | 'name' => $val['product_name'], |
57 | 'price' => $val['sales_price'], | 64 | 'price' => $val['sales_price'], |
58 | 'productId' => $val['product_id'], | 65 | 'productId' => $val['product_id'], |
-
Please register or login to post a comment