...
|
...
|
@@ -156,7 +156,8 @@ const add = (req, res, next) => { |
|
|
return indexModel.addToCart(productSku, buyNumber, goodsType, isEdit, promotionId, uid, shoppingKey).then(data => {
|
|
|
if (!shoppingKey && _.has(data, 'data.shopping_key')) {
|
|
|
res.cookie('_SPK', data.data.shopping_key, {
|
|
|
expires: new Date(Date.now() + 86400 * 360)
|
|
|
expires: new Date(Date.now() + 86400 * 360),
|
|
|
domain: '.m.yohobuy.com'
|
|
|
});
|
|
|
}
|
|
|
data ? res.json(data) : res.status(400).json({
|
...
|
...
|
|