Merge branch 'master' into feature/real-name
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -129,14 +129,14 @@ const isFavShop = (req, res, next) => { | @@ -129,14 +129,14 @@ const isFavShop = (req, res, next) => { | ||
129 | let shopId = req.body.shopId; | 129 | let shopId = req.body.shopId; |
130 | 130 | ||
131 | if (!uid || !shopId) { | 131 | if (!uid || !shopId) { |
132 | - res.json({ | 132 | + return res.json({ |
133 | code: 400, | 133 | code: 400, |
134 | message: '未收藏' | 134 | message: '未收藏' |
135 | }); | 135 | }); |
136 | } | 136 | } |
137 | 137 | ||
138 | fav.getFavStatus(uid, shopId, 'shop').then(result => { | 138 | fav.getFavStatus(uid, shopId, 'shop').then(result => { |
139 | - res.json(result); | 139 | + return res.json(result); |
140 | }).catch(next); | 140 | }).catch(next); |
141 | }; | 141 | }; |
142 | 142 |
-
Please register or login to post a comment