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