Authored by 周少峰

Merge branch 'hotfix/home'

... ... @@ -50,9 +50,16 @@ class HelperHome
{
$result = array();
foreach ($product as $key => $val) {
$img = (isset($val['default_images']) && $val['default_images'])?Images::getImageUrl($val['default_images'], 100, 100) : '';
// 强制对图片进行切图规则处理 redmine:12390
if (strpos($img, 'imageView')) {
$img = strstr($img, 'imageView', true) . 'imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70';
}
$result[] = array(
'href' => Helpers::getUrlBySkc($val['product_id'], $val['goods_list'][0]['product_skc'], $val['cn_alphabet']),
'thumb' => (isset($val['default_images']) && $val['default_images'])?Images::getImageUrl($val['default_images'], 400, 500) : '',
'thumb' => $img,
'name' => $val['product_name'],
'price' => $val['sales_price'],
'productId' => $val['product_id'],
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.