Showing
1 changed file
with
1 additions
and
1 deletions
@@ -316,7 +316,7 @@ class UserModel | @@ -316,7 +316,7 @@ class UserModel | ||
316 | } else { | 316 | } else { |
317 | $data = $records['data']['product_list']; | 317 | $data = $records['data']['product_list']; |
318 | foreach ($data as &$val) { | 318 | foreach ($data as &$val) { |
319 | - $val['link'] = isset($val['goodsId']) ? Helpers::url('/product/pro_' . $val['product_skn'] . '_' . $val['goodsId'] . '/' . $val['cnAlphabet'] . '.html') : ''; | 319 | + $val['link'] = Helpers::url('/product/show_' . $val['product_skn'] . '.html'); |
320 | $val['image'] = !empty($val['image']) ? Helpers::getImageUrl($val['image'], 447, 596) : ''; | 320 | $val['image'] = !empty($val['image']) ? Helpers::getImageUrl($val['image'], 447, 596) : ''; |
321 | $val['sales_price'] = Helpers::transPrice($val['sales_price']); | 321 | $val['sales_price'] = Helpers::transPrice($val['sales_price']); |
322 | $val['market_price'] = ($val['market_price'] - $val['sales_price'] > 0) ? $val['market_price'] . '.00' : false; | 322 | $val['market_price'] = ($val['market_price'] - $val['sales_price'] > 0) ? $val['market_price'] . '.00' : false; |
-
Please register or login to post a comment