Authored by whb

Merge branch 'release_v1'

@@ -398,8 +398,8 @@ class SearchModel @@ -398,8 +398,8 @@ class SearchModel
398 } 398 }
399 $product['url'] = Helpers::getUrlBySkc($productVal['product_id'], $product['default_goods'], $productVal['cn_alphabet']); 399 $product['url'] = Helpers::getUrlBySkc($productVal['product_id'], $product['default_goods'], $productVal['cn_alphabet']);
400 $product['pic_url'] = Images::getImageUrl($product['default_image'], 150, 200); 400 $product['pic_url'] = Images::getImageUrl($product['default_image'], 150, 200);
401 - $product['market_price'] = $productVal['market_price'] != $productVal['sales_price'] ? $productVal['market_price'] : '';  
402 - $product['price'] = $productVal['sales_price']; 401 + $product['market_price'] = $productVal['market_price'] != $productVal['sales_price'] ? '¥'.$productVal['market_price'] : '';
  402 + $product['price'] = '¥'.$productVal['sales_price'];
403 $product['product_name'] = $productVal['product_name']; 403 $product['product_name'] = $productVal['product_name'];
404 unset($product['default_goods']); 404 unset($product['default_goods']);
405 unset($product['default_image']); 405 unset($product['default_image']);
@@ -408,6 +408,7 @@ class SearchModel @@ -408,6 +408,7 @@ class SearchModel
408 } 408 }
409 } 409 }
410 ksort($result); 410 ksort($result);
  411 + $result = array_values($result);
411 return $result; 412 return $result;
412 } 413 }
413 414
@@ -279,6 +279,9 @@ class CartModel @@ -279,6 +279,9 @@ class CartModel
279 if ($remove && isset($remove['code'])) { 279 if ($remove && isset($remove['code'])) {
280 $result['code'] = $remove['code']; 280 $result['code'] = $remove['code'];
281 $result['message'] = $remove['message']; 281 $result['message'] = $remove['message'];
  282 + if (isset($remove['data']['goods_count'])) {
  283 + $result['total_goods_num'] = $remove['data']['goods_count'];
  284 + }
282 } 285 }
283 } while (false); 286 } while (false);
284 287