Authored by 刘传洋

m

... ... @@ -60,11 +60,14 @@ const setShoppingCookie = (req, res) => {
return service.getCartCount(uid, shoppingKey).then(ret => {
if (ret && ret.data && ret.data.cart_goods_count) {
res.cookie('_g', {
res.cookie('_g', JSON.stringify({
_k: shoppingKey,
_nac: ret.data.cart_goods_count,
_ac: 0,
_r: 1
}), {
domain: '.yohobuy.com',
path: '/'
});
}
});
... ...