...
|
...
|
@@ -8,16 +8,16 @@ module.exports = { |
|
|
authService.callLogin(user,password,res);
|
|
|
},
|
|
|
'/index/ajaxshop':function(req,res) {
|
|
|
var shopId = req.query.shops_id;
|
|
|
var shopId = Number(req.query.shops_id);
|
|
|
var cookie = req.session.gray;
|
|
|
|
|
|
//设置当前的店铺信息
|
|
|
if(req.session.user && req.session.user.auth) {
|
|
|
req.session.user.auth.shopId = shopId;
|
|
|
_.forEach(req.session.shopList,function(v,k) {
|
|
|
_.forEach(req.session.user.shopList,function(v,k) {
|
|
|
if(v.id === shopId) {
|
|
|
req.session.user.shopName = v.name;
|
|
|
}
|
|
|
req.session.user.auth.shopName = v.name;
|
|
|
req.session.user.auth.shopId = shopId;
|
|
|
};
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|