Skip to content

Commit 48ac938

Browse files
committed
Merge branch 'dev' of https://github.com/eeg1412/wikimoeCardByNodeJS into master
2 parents 2c11779 + e27266c commit 48ac938

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

server/api/robotCheck.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ module.exports = async function (req, res, next) {
2727
return false
2828
}
2929
let email = result.email
30+
if (!result.robotCheck) {
31+
res.send({
32+
code: 0,
33+
msg: '当前无需验证!',
34+
})
35+
console.info(
36+
chalk.yellow('无需进行机器人验证,IP为:' + IP + ',邮箱为:' + email)
37+
)
38+
return false
39+
}
3040
console.info(chalk.green(IP + '的邮箱解析结果为' + email))
3141
// 验证码验证
3242
if (req.session.captcha != captcha || !captcha) {

0 commit comments

Comments
 (0)