...
|
...
|
@@ -245,7 +245,7 @@ const indexData = (req, res, next) => { |
|
|
|
|
|
res.json(result);
|
|
|
});
|
|
|
});
|
|
|
}).catch(next);
|
|
|
|
|
|
};
|
|
|
|
...
|
...
|
@@ -277,11 +277,12 @@ const getProductList = (req, res, next) => { |
|
|
res.json({products: resultProducts});
|
|
|
}).catch(error => {
|
|
|
logger.error(error);
|
|
|
return next(error);
|
|
|
});
|
|
|
};
|
|
|
|
|
|
// only app
|
|
|
const remind = (req, res) => {
|
|
|
const remind = (req, res, next) => {
|
|
|
if (!(req.yoho.isApp && req.xhr)) {
|
|
|
return res.status(404).json({
|
|
|
msg: '请求不合法'
|
...
|
...
|
@@ -297,7 +298,7 @@ const remind = (req, res) => { |
|
|
app_type: 0
|
|
|
}).then(result => {
|
|
|
return res.json(result);
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
// Middleware:检测 app_version 是否正确
|
...
|
...
|
|