Authored by zhangxiaoru

shop

... ... @@ -68,7 +68,7 @@ const shopList = (req, res, next) => {
// 获取店铺收藏状态
const shopFav = (req, res, next) => {
let uid = req.query.uid ? _.trim(crypto.decrypt('', req.query.uid)) : req.user.uid;
let uid = req.query.uid ? parseInt(crypto.decrypt('', req.query.uid), 10) : req.user.uid;
let shopIds = req.query.shopIds;
if (!uid) {
... ...
... ... @@ -13,7 +13,7 @@ const shopList = (uid, tabName, channelId) => {
let params = {
method: 'app.shops.promote'
};
if (uid) {
params.uid = uid;
}
... ...