...
|
...
|
@@ -25,6 +25,10 @@ exports.index = (req, res, next) => { |
|
|
_.isEmpty(req.query) ? null : req.query));
|
|
|
}
|
|
|
|
|
|
if (isNaN(+shopId)) {
|
|
|
return res.redirect(301, '/404');
|
|
|
}
|
|
|
|
|
|
if (req.xhr && req.query._pjax && shopId) {
|
|
|
return req.ctx(shopModel).getShopGoodsData(shopId, req.yoho.channel, req.query).then(result => {
|
|
|
Object.assign(result, {
|
...
|
...
|
|