Showing
1 changed file
with
2 additions
and
2 deletions
@@ -89,7 +89,7 @@ const collectProduct = (req, res, next) => { | @@ -89,7 +89,7 @@ const collectProduct = (req, res, next) => { | ||
89 | const collectShop = (req, res, next) => { | 89 | const collectShop = (req, res, next) => { |
90 | let uid = req.user.uid || ''; | 90 | let uid = req.user.uid || ''; |
91 | let shopId = req.body.shopId; | 91 | let shopId = req.body.shopId; |
92 | - let isadd = req.body.isFavorite; | 92 | + let isadd = req.body.isFavorite * 1 ? true : false; |
93 | 93 | ||
94 | // needColloect 说明刚登录状态 是cookie传的值 | 94 | // needColloect 说明刚登录状态 是cookie传的值 |
95 | if (req.body.needColloect * 1 === 1) { | 95 | if (req.body.needColloect * 1 === 1) { |
@@ -100,7 +100,7 @@ const collectShop = (req, res, next) => { | @@ -100,7 +100,7 @@ const collectShop = (req, res, next) => { | ||
100 | res.json({ | 100 | res.json({ |
101 | code: 401, | 101 | code: 401, |
102 | message: '用户没有登录', | 102 | message: '用户没有登录', |
103 | - data: {url: helpers.urlFormat('/signin')} | 103 | + data: {url: helpers.urlFormat('/signin.html')} |
104 | }); | 104 | }); |
105 | } else if (!shopId) { | 105 | } else if (!shopId) { |
106 | res.json({ | 106 | res.json({ |
-
Please register or login to post a comment