Authored by 张孝茹

400

@@ -35,7 +35,7 @@ exports.orderDetailData = (req, res, next) => { @@ -35,7 +35,7 @@ exports.orderDetailData = (req, res, next) => {
35 let refundReason = result[2]; 35 let refundReason = result[2];
36 36
37 if (!orderDetail || _.isEmpty(orderDetail)) { 37 if (!orderDetail || _.isEmpty(orderDetail)) {
38 - return next(404); 38 + return next();
39 } 39 }
40 40
41 Object.assign(orderDetail, { 41 Object.assign(orderDetail, {
@@ -81,11 +81,11 @@ class BackNew { @@ -81,11 +81,11 @@ class BackNew {
81 /** 81 /**
82 * 通过邮箱找回密码成功页 82 * 通过邮箱找回密码成功页
83 */ 83 */
84 - backByEmailSuccess(req, res) { 84 + backByEmailSuccess(req, res, next) {
85 let email = req.query.email || ''; 85 let email = req.query.email || '';
86 86
87 if (!helpers.verifyEmail(email)) { 87 if (!helpers.verifyEmail(email)) {
88 - res.redirect(400); 88 + return next();
89 } 89 }
90 res.render('back/email-success-new', { 90 res.render('back/email-success-new', {
91 width750: true, 91 width750: true,