Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
7 years ago
Commit
f6f5f2c60f618dd475546225327374529bf02d48
1 parent
047909dd
is human
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
apps/3party/controllers/robot-check.js
apps/3party/controllers/robot-check.js
View file @
f6f5f2c
...
...
@@ -2,7 +2,7 @@
const
robotCheckService
=
require
(
'../models/robot-check-service'
);
const
captchaService
=
require
(
'../../passport/controllers/captcha'
);
const
logger
=
global
.
yoho
.
logger
;
const
index
=
(
req
,
res
,
next
)
=>
{
let
channel
=
req
.
yoho
.
channel
||
'boys'
;
...
...
@@ -27,6 +27,7 @@ const isHuman = (req, res) => {
remoteIp
=
arr
[
0
];
}
logger
.
info
(
'isHuman'
,
remoteIp
);
robotCheckService
.
removeBlack
(
remoteIp
).
then
(()
=>
{
return
res
.
json
({
code
:
200
...
...
Please
register
or
login
to post a comment