Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
刘传洋
8 years ago
Commit
51d85f8599d2d9631023aeb252c53b9c12d46ce1
2 parents
dda0c589
47242edc
m
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
apps/cart/controllers/cart.js
apps/cart/controllers/cart.js
View file @
51d85f8
...
...
@@ -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
:
'/'
});
}
});
...
...
Please
register
or
login
to post a comment