Merge branch 'hotfix/shopfavstatus' into 'release/5.6'
店铺收藏状态 See merge request !514
Showing
1 changed file
with
7 additions
and
0 deletions
@@ -182,6 +182,13 @@ const shopFav = (req, res) => { | @@ -182,6 +182,13 @@ const shopFav = (req, res) => { | ||
182 | let uid = req.user.uid || req.query.uid || req.cookies.appUid || _getUidFromUserAgent(req); | 182 | let uid = req.user.uid || req.query.uid || req.cookies.appUid || _getUidFromUserAgent(req); |
183 | let shopId = req.query.shopId; | 183 | let shopId = req.query.shopId; |
184 | 184 | ||
185 | + if (!uid || !shopId) { | ||
186 | + return res.json({ | ||
187 | + code: 200, | ||
188 | + collect: false | ||
189 | + }); | ||
190 | + } | ||
191 | + | ||
185 | listModel.getBrandFavStatus({ | 192 | listModel.getBrandFavStatus({ |
186 | uid: uid, | 193 | uid: uid, |
187 | id: shopId, | 194 | id: shopId, |
-
Please register or login to post a comment