...
|
...
|
@@ -50,7 +50,7 @@ class CartModel |
|
|
*/
|
|
|
public static function getCartData($uid, $shoppingKey, $cartType = 'all', $onlyGift = false, $onlyAdvanceBuy = false)
|
|
|
{
|
|
|
$result = array('cartNav' => true);
|
|
|
$result = array();
|
|
|
|
|
|
// 用户是否登录
|
|
|
if (empty($uid)) {
|
...
|
...
|
@@ -63,11 +63,14 @@ class CartModel |
|
|
// 处理普通购物车和预售购物车的数据
|
|
|
do {
|
|
|
if (!isset($cartData['data']) || empty($cartData['data'])) {
|
|
|
$result['isEmptyCart'] = true;
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
$cart = $cartData['data'];
|
|
|
|
|
|
$result['cartNav'] = true;
|
|
|
|
|
|
if ($cartType !== 'all') { // 加价购或者赠品数据
|
|
|
$result = self::procCartData($cart['ordinary_cart_data'], $onlyGift, $onlyAdvanceBuy);
|
|
|
break;
|
...
|
...
|
|