Authored by yyq

Merge branch 'hotfix/passportBack' into release/0606

@@ -319,7 +319,7 @@ const resetPwdSuccessPage = (req, res, next) => { @@ -319,7 +319,7 @@ const resetPwdSuccessPage = (req, res, next) => {
319 .catch(next); 319 .catch(next);
320 }; 320 };
321 321
322 -const verifyCodeByMobileAPI = (req, res) => { 322 +const verifyCodeByMobileAPI = (req, res, next) => {
323 let mobile = req.body.mobile || ''; 323 let mobile = req.body.mobile || '';
324 let area = req.body.area || '86'; 324 let area = req.body.area || '86';
325 let mobileCode = req.body.code || ''; 325 let mobileCode = req.body.code || '';
@@ -343,9 +343,7 @@ const verifyCodeByMobileAPI = (req, res) => { @@ -343,9 +343,7 @@ const verifyCodeByMobileAPI = (req, res) => {
343 .then(result => { 343 .then(result => {
344 res.json(result); 344 res.json(result);
345 }) 345 })
346 - .catch(()=> {  
347 - res.json(ERR);  
348 - }); 346 + .catch(next);
349 }; 347 };
350 348
351 const validateExistCodePage = (req, res, next) => { 349 const validateExistCodePage = (req, res, next) => {