...
|
...
|
@@ -177,7 +177,7 @@ class UserModel |
|
|
foreach ($favProduct['data']['product_list'] as $val) {
|
|
|
$product = array();
|
|
|
$product['fav_id'] = $val['product_id'];
|
|
|
$product['link'] = Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html');
|
|
|
$product['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : '';
|
|
|
$product['imgUrl'] = Helpers::getImageUrl($val['image'], 447, 596);;
|
|
|
$product['title'] = $val['product_name'];
|
|
|
$product['price'] = !empty($val['market_price']) ? '¥'.$val['market_price'] . '.00' : 0;
|
...
|
...
|
@@ -226,7 +226,7 @@ class UserModel |
|
|
foreach ($favBrand['data']['brand_list'] as $val) {
|
|
|
$brand = array();
|
|
|
$brand['id'] = $val['brand_id'];
|
|
|
$brand['brandImg'] = !empty($val['brand_ico']) ? Images::getImageUrl($val['brand_ico'], 235, 314) : '';
|
|
|
$brand['brandImg'] = !empty($val['brand_ico']) ? Images::getImageUrl($val['brand_ico'], 47, 47) : '';
|
|
|
$brand['brandName'] = $val['brand_name'];
|
|
|
$brand['update'] = $val['new_product_num'];
|
|
|
$brand['discount'] = $val['product_discount_num'];
|
...
|
...
|
|