Authored by hf

code review by fei.hong: do merge yang.yang and shaofeng.zhou fixes bugs codes

... ... @@ -272,7 +272,7 @@ class HelperSearch
$val['default_images'] = $cover;
}
if (!empty($val['default_images'])) {
$val['default_images'] = Images::getImageUrl($val['default_images'], $options['imgSize'][0], $options['imgSize'][1]);
$val['default_images'] = Images::getImageUrl($val['default_images'], $options['imgSize'][0], $options['imgSize'][1], 1);
}
//搜索关键字高亮
if (isset(self::$params['query']) && !empty(self::$params['query']) && strpos($val['product_name'], self::$params['query']) !==false) {
... ... @@ -1389,9 +1389,9 @@ class HelperSearch
if ($cover) {
$val['images_url'] = $cover;
}
$build['coverImg'] = Images::getImageUrl($val['images_url'], $options['imgSize'][0], $options['imgSize'][1]);
$build['coverImg'] = Images::getImageUrl($val['images_url'], $options['imgSize'][0], $options['imgSize'][1], 1);
$build['url'] = Helpers::getUrlBySkc($product[0]['product_id'], $val['goods_id'], $product[0]['cn_alphabet']);
$build['src'] = Images::getImageUrl($val['images_url'], $options['imgSize'][0], $options['imgSize'][1]);
$build['src'] = Images::getImageUrl($val['images_url'], $options['imgSize'][0], $options['imgSize'][1], 1);
$result[] = $build;
}
}
... ...
... ... @@ -738,7 +738,7 @@ class CartModel
}
// 拥有的YOHO币
$result['ownYohoCoin'] = intval($pay['data']['yoho_coin']) * 100;
$result['ownYohoCoin'] = $pay['data']['yoho_coin'] * 100;
// 默认是否使用YOHO币
$result['useYohoCoin'] = empty($pay['data']['use_yoho_coin']) ? false : true;
// 红包金额
... ...