...
|
...
|
@@ -71,15 +71,18 @@ exports.callLogin = function(user, password, res) { |
|
|
if (data && data.length > 0) {
|
|
|
userInfo.auth.shopName = data[0].name;
|
|
|
userInfo.auth.shopId = data[0].id;
|
|
|
}
|
|
|
//设置店铺列表
|
|
|
userInfo.shopList = data;
|
|
|
|
|
|
//设置店铺列表
|
|
|
userInfo.shopList = data;
|
|
|
res.json({
|
|
|
code: 20003,
|
|
|
data: userInfo
|
|
|
});
|
|
|
}else{
|
|
|
res.json(errorMessage);
|
|
|
}
|
|
|
|
|
|
res.json({
|
|
|
code: 20003,
|
|
|
data: userInfo
|
|
|
});
|
|
|
|
|
|
});
|
|
|
}
|
|
|
});
|
...
|
...
|
|