Authored by 沈志敏

新增参数

... ... @@ -13,16 +13,16 @@ exports.productLst = function(req, res, next) {
} else if (req.query.brand) {
params.brand = req.query.brand;
}
if (req.query.enum) {
params.specified_sort = req.query.enum;
}
if (req.query.pd) {
params.p_d = req.query.pd;
}
if (req.query.limit) {
params.limit = req.query.limit;
}
model.productLst(params).then((result) => {
res.jsonp(result);
}).catch(next);
... ...