Authored by zhangxiaoru

shop

... ... @@ -57,7 +57,7 @@ const shopNav = (req, res, next) => {
const shopList = (req, res, next) => {
let uid = _.trim(crypto.decrypt('', req.query.uid)) || req.user.uid;
let uid = parseInt(crypto.decrypt('', req.query.uid), 10) || req.user.uid;
let tabName = req.query.tabName;
let channelId = req.query.channelId || '';
... ...
... ... @@ -11,9 +11,12 @@ const service = global.yoho.ServiceAPI;
const shopList = (uid, tabName, channelId) => {
let params = {
method: 'app.shops.promote',
uid: uid,
method: 'app.shops.promote'
};
if (uid) {
params.uid = uid;
}
if (tabName) {
params.tab_name = tabName;
... ...