Authored by Rock Zhang

修复未登录状态下商品只能加入一个的bug

@@ -40,11 +40,11 @@ class CartData @@ -40,11 +40,11 @@ class CartData
40 $param['selected'] = 'Y'; 40 $param['selected'] = 'Y';
41 $param['promotion_id'] = $promotionId; 41 $param['promotion_id'] = $promotionId;
42 42
43 - if ($uid !== null) { 43 + if (!empty($uid)) {
44 $param['uid'] = $uid; 44 $param['uid'] = $uid;
45 } 45 }
46 if ($shoppingKey !== null) { 46 if ($shoppingKey !== null) {
47 - $param['shoppingKey'] = $shoppingKey; 47 + $param['shopping_key'] = $shoppingKey;
48 } 48 }
49 $param['client_secret'] = Sign::getSign($param); 49 $param['client_secret'] = Sign::getSign($param);
50 50