...
|
...
|
@@ -182,6 +182,13 @@ const shopFav = (req, res) => { |
|
|
let uid = req.user.uid || req.query.uid || req.cookies.appUid || _getUidFromUserAgent(req);
|
|
|
let shopId = req.query.shopId;
|
|
|
|
|
|
if (!uid || !shopId) {
|
|
|
return res.json({
|
|
|
code: 200,
|
|
|
collect: false
|
|
|
});
|
|
|
}
|
|
|
|
|
|
listModel.getBrandFavStatus({
|
|
|
uid: uid,
|
|
|
id: shopId,
|
...
|
...
|
|