...
|
...
|
@@ -331,9 +331,10 @@ class CartModel |
|
|
$result = array();
|
|
|
|
|
|
$skuList = '';
|
|
|
$isLimitGoods = !empty($sku) && !empty($skn) && !empty($buyNumber);
|
|
|
if ($isLimitGoods) { // 存在sku,skn和buyNumber时为限购商品
|
|
|
$skuList = json_encode(array(
|
|
|
$hasSkuListCookie = isset($orderInfo['skuList']);
|
|
|
$isLimitGoods = $hasSkuListCookie || (!empty($sku) && !empty($skn) && !empty($buyNumber));
|
|
|
if ($isLimitGoods) { // 存在sku,skn和buyNumber或者cookie中有skuList时为限购商品
|
|
|
$skuList = $hasSkuListCookie ? $orderInfo['skuList'] : json_encode(array(
|
|
|
array(
|
|
|
'type' => 'limitcode',
|
|
|
'limitproductcode' => $limitProductCode,
|
...
|
...
|
@@ -342,6 +343,7 @@ class CartModel |
|
|
'buy_number' => $buyNumber
|
|
|
)
|
|
|
));
|
|
|
|
|
|
$result['isLimit'] = true;
|
|
|
}
|
|
|
|
...
|
...
|
|