...
|
...
|
@@ -24,6 +24,25 @@ exports.productLst = function(req, res, next) { |
|
|
order: req.query.order || 'pool_id_desc',
|
|
|
filter_poolId: req.query.filter_poolId || ''
|
|
|
}, req.query));
|
|
|
} else if (req.query.is_ufo === 'Y') {
|
|
|
let keys = ['product_id', 'productPool', 'sort', 'brand', 'series', 'size'];
|
|
|
let params = {
|
|
|
uid: uid,
|
|
|
udid: udid,
|
|
|
limit: 20
|
|
|
};
|
|
|
|
|
|
keys.forEach(function(k) {
|
|
|
if (req.query[k]) {
|
|
|
params[k] = req.query[k];
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (req.query.limit < 100) {
|
|
|
params.limit = req.query.limit;
|
|
|
}
|
|
|
|
|
|
getProductList = req.ctx(model).ufoProductList(params);
|
|
|
} else {
|
|
|
let keys = ['sort', 'misort', 'msort', 'gender', 'brand'],
|
|
|
params = {
|
...
|
...
|
|