...
|
...
|
@@ -205,6 +205,14 @@ const sendCodeToMobileAPI = (req, res, next) => { |
|
|
return res.json(ERR);
|
|
|
}
|
|
|
|
|
|
// 针对直接调接口的情况
|
|
|
if (!_.get(req, 'session.backupCaptch.verifyResult')) {
|
|
|
return res.json({
|
|
|
code: 400,
|
|
|
message: '非法请求'
|
|
|
});
|
|
|
}
|
|
|
|
|
|
let backCount = _.get(req.session, 'backupCaptch.count'); // 短信验证码 发送次数
|
|
|
|
|
|
if (!backCount) {
|
...
|
...
|
@@ -237,6 +245,8 @@ const sendCodeToMobileAPI = (req, res, next) => { |
|
|
_.set(req.session, 'backupCaptch.timeout', Date.now() + 5 * 60 * 1000);
|
|
|
}
|
|
|
|
|
|
req.session.backupCaptchStep2 = true; // 允许跳到第二步
|
|
|
|
|
|
return res.json({
|
|
|
code: 200,
|
|
|
data: helpers.urlFormat('/passport/back/mobilecode', {
|
...
|
...
|
|