...
|
...
|
@@ -229,7 +229,8 @@ const cartAdd = (req, res) => { |
|
|
// 设置加入购物车凭证到客户端浏览器
|
|
|
if (!shoppingKey && result && result.data && result.data.shopping_key) {
|
|
|
res.cookie('_SPK', result.data.shopping_key, {
|
|
|
expires: new Date(Date.now() + 86400 * 360)
|
|
|
expires: new Date(Date.now() + 86400 * 360),
|
|
|
domain: config.cookieDomain
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|