Authored by 陈峰

fix seckill catch

@@ -245,7 +245,7 @@ const indexData = (req, res, next) => { @@ -245,7 +245,7 @@ const indexData = (req, res, next) => {
245 245
246 res.json(result); 246 res.json(result);
247 }); 247 });
248 - }); 248 + }).catch(next);
249 249
250 }; 250 };
251 251
@@ -277,11 +277,12 @@ const getProductList = (req, res, next) => { @@ -277,11 +277,12 @@ const getProductList = (req, res, next) => {
277 res.json({products: resultProducts}); 277 res.json({products: resultProducts});
278 }).catch(error => { 278 }).catch(error => {
279 logger.error(error); 279 logger.error(error);
  280 + return next(error);
280 }); 281 });
281 }; 282 };
282 283
283 // only app 284 // only app
284 -const remind = (req, res) => { 285 +const remind = (req, res, next) => {
285 if (!(req.yoho.isApp && req.xhr)) { 286 if (!(req.yoho.isApp && req.xhr)) {
286 return res.status(404).json({ 287 return res.status(404).json({
287 msg: '请求不合法' 288 msg: '请求不合法'
@@ -297,7 +298,7 @@ const remind = (req, res) => { @@ -297,7 +298,7 @@ const remind = (req, res) => {
297 app_type: 0 298 app_type: 0
298 }).then(result => { 299 }).then(result => {
299 return res.json(result); 300 return res.json(result);
300 - }); 301 + }).catch(next);
301 }; 302 };
302 303
303 // Middleware:检测 app_version 是否正确 304 // Middleware:检测 app_version 是否正确
@@ -10378,9 +10378,9 @@ yoho-md5@^2.0.0: @@ -10378,9 +10378,9 @@ yoho-md5@^2.0.0:
10378 version "2.1.0" 10378 version "2.1.0"
10379 resolved "http://npm.yohops.com/yoho-md5/-/yoho-md5-2.1.0.tgz#f0c00d343f775e77952ebce0826863ac52e0ad50" 10379 resolved "http://npm.yohops.com/yoho-md5/-/yoho-md5-2.1.0.tgz#f0c00d343f775e77952ebce0826863ac52e0ad50"
10380 10380
10381 -yoho-node-lib@=0.6.26:  
10382 - version "0.6.26"  
10383 - resolved "http://npm.yohops.com/yoho-node-lib/-/yoho-node-lib-0.6.26.tgz#4bacb7e56b3dd937483ae4d65a7543b6b6dd4a20" 10381 +yoho-node-lib@=0.6.28:
  10382 + version "0.6.28"
  10383 + resolved "http://npm.yohops.com/yoho-node-lib/-/yoho-node-lib-0.6.28.tgz#09eb686cb8cf01cfbbbdc0c0180a78079f17292c"
10384 dependencies: 10384 dependencies:
10385 dnscache "^1.0.1" 10385 dnscache "^1.0.1"
10386 handlebars "^4.0.5" 10386 handlebars "^4.0.5"