sms_code(userInfo).then(function(data){ return res.json(data);}).then(function(data){ return res.json(data);}).catch(next);為什么catch(function(err){
next(err)
})可以縮寫成.catch(next);
express 中 promise 處理異常
RISEBY
2018-11-06 16:15:35