Showing
1 changed file
with
4 additions
and
1 deletions
@@ -60,11 +60,14 @@ const setShoppingCookie = (req, res) => { | @@ -60,11 +60,14 @@ const setShoppingCookie = (req, res) => { | ||
60 | 60 | ||
61 | return service.getCartCount(uid, shoppingKey).then(ret => { | 61 | return service.getCartCount(uid, shoppingKey).then(ret => { |
62 | if (ret && ret.data && ret.data.cart_goods_count) { | 62 | if (ret && ret.data && ret.data.cart_goods_count) { |
63 | - res.cookie('_g', { | 63 | + res.cookie('_g', JSON.stringify({ |
64 | _k: shoppingKey, | 64 | _k: shoppingKey, |
65 | _nac: ret.data.cart_goods_count, | 65 | _nac: ret.data.cart_goods_count, |
66 | _ac: 0, | 66 | _ac: 0, |
67 | _r: 1 | 67 | _r: 1 |
68 | + }), { | ||
69 | + domain: '.yohobuy.com', | ||
70 | + path: '/' | ||
68 | }); | 71 | }); |
69 | } | 72 | } |
70 | }); | 73 | }); |
-
Please register or login to post a comment