...
|
...
|
@@ -27,10 +27,12 @@ const favorite = (req, res) => { |
|
|
};
|
|
|
|
|
|
let favProduct = (req, res, next) => {
|
|
|
let uid = req.user.uid;
|
|
|
let uid = req.user.uid || 5987341;
|
|
|
let page = req.query.page || 1;
|
|
|
let limit = 10;
|
|
|
|
|
|
console.log(uid)
|
|
|
|
|
|
favoriteModel.favProduct(uid, page, limit).then((result) => {
|
|
|
|
|
|
if (typeof(result.total) === 'undefined' && typeof(result.more) === 'undefined') {
|
...
|
...
|
@@ -45,7 +47,7 @@ let favProduct = (req, res, next) => { |
|
|
};
|
|
|
|
|
|
let favfavBrand = (req, res, next) => {
|
|
|
let uid = req.user.uid;
|
|
|
let uid = req.user.uid || 8039759;
|
|
|
let page = req.query.page || 1;
|
|
|
let limit = 10;
|
|
|
|
...
|
...
|
|