Authored by 郭成尧

read-from-undefined-err

... ... @@ -193,11 +193,13 @@ class BackNew {
let backCount = _.get(req.session, 'backupCaptch.count'); // 短信验证码 发送次数
if (!backCount) {
let timeout = _.parseInt(_.get(req, 'session.backupCaptch.timeout'));
/* 如果设置了冻结时间,验证 */
let untilTime = (parseInt(req.session.backupCaptch.timeout, 10) -
let untilTime = (timeout -
parseInt(Date.now(), 10)) / 1000 / 60;
if (parseInt(Date.now(), 10) < parseInt(req.session.backupCaptch.timeout, 10)) {
if (parseInt(Date.now(), 10) < timeout) {
return res.json({
code: 401,
message: '请' + (parseInt(untilTime, 10) + 1) + '分钟后尝试!'
... ...