...
|
...
|
@@ -456,8 +456,8 @@ class IndexController extends AbstractAction |
|
|
$result = CartModel::addToCart($productSku, $buyNumber, $goodsType, $isEdit, $promotionId, $uid, $shoppingKey);
|
|
|
|
|
|
// 设置加入购物车凭证到客户端浏览器
|
|
|
if (!$shoppingKey && isset($result['data']['shopping_key'])) {
|
|
|
$this->setCookie('_Spk', $result['data']['shopping_key']);
|
|
|
if (empty($shoppingKey) && isset($result['data']['shopping_key'])) {
|
|
|
$this->setCookie('_SPK', $result['data']['shopping_key'], time() + 86400 * 360);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|