Authored by 王水玲

登录验证码问题

... ... @@ -242,7 +242,18 @@ const local = {
});
}
if (req.session.hasGetSMS) {
return res.json({
code: 400,
message: '发送失败'
});
}
LoginService.sendPasswordBySMS(area, mobile).then((result) => {
if (result && result.code === 200) {
req.session.hasGetSMS = true;
}
return res.json(result);
}).catch(next);
},
... ...