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