Authored by 陈峰

fix seckill catch

... ... @@ -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 是否正确
... ...
... ... @@ -10378,9 +10378,9 @@ yoho-md5@^2.0.0:
version "2.1.0"
resolved "http://npm.yohops.com/yoho-md5/-/yoho-md5-2.1.0.tgz#f0c00d343f775e77952ebce0826863ac52e0ad50"
yoho-node-lib@=0.6.26:
version "0.6.26"
resolved "http://npm.yohops.com/yoho-node-lib/-/yoho-node-lib-0.6.26.tgz#4bacb7e56b3dd937483ae4d65a7543b6b6dd4a20"
yoho-node-lib@=0.6.28:
version "0.6.28"
resolved "http://npm.yohops.com/yoho-node-lib/-/yoho-node-lib-0.6.28.tgz#09eb686cb8cf01cfbbbdc0c0180a78079f17292c"
dependencies:
dnscache "^1.0.1"
handlebars "^4.0.5"
... ...