Authored by 周少峰

Merge branch 'hotfix/image-quality'

... ... @@ -54,7 +54,7 @@ class HelperHome
// 强制对图片进行切图规则处理 redmine:12390
if (strpos($img, 'imageView')) {
$img = strstr($img, 'imageView', true) . 'imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/70';
$img = strstr($img, 'imageView', true) . 'imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/90';
}
$result[] = array(
... ...
... ... @@ -86,7 +86,6 @@ class IndexModel
public static function preferenceData($channel, $uid, $udid, $recPos, $limit)
{
$response = UserData::newPreference($channel, $uid, $udid, $recPos, $limit);
if ($response['code'] === 200) {
return HelperHome::formatNew($response['data']['product_list']);
} else {
... ...
... ... @@ -57,7 +57,7 @@ class OrderModel
$refundFlag = array();
foreach ($orderV['order_goods'] as $gokey => $goval) {
$goods[$gokey]['href'] = Helpers::getUrlBySkc($goval['product_id'], $goval['goods_id'], $goval['cn_alphabet']);
$goods[$gokey]['thumb'] = (isset($goval['goods_image']) && $goval['goods_image']) ? Images::getImageUrl($goval['goods_image'], 100, 100) : '';
$goods[$gokey]['thumb'] = (isset($goval['goods_image']) && $goval['goods_image']) ? str_replace('quality/80', 'quality/90', Images::getImageUrl($goval['goods_image'], 100, 100)) : '';
$goods[$gokey]['name'] = $goval['product_name'];
$goods[$gokey]['color'] = $goval['color_name'];
$goods[$gokey]['size'] = ($goval['product_skn'] * 1 === EXHIBITION_TICKET) ? '' : $goval['size_name'];
... ...
... ... @@ -664,7 +664,7 @@ class CartModel
}
break;
}
$build['img'] .= '?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/80';
$build['img'] .= '?imageMogr2/thumbnail/100x100/extent/100x100/background/d2hpdGU=/position/center/quality/90';
$build['href'] = Helpers::url('/product/pro_' . $value['product_id'] . '_' . $goodsId . '/' . $value['cn_alphabet'] . '.html', null, 'item');
$result['data']['item'][] = $build;
... ...