Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
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
5220d1ab374aa1d20525c2bea2310bd26ef82e86
1 parent
602af1ed
'开关'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
doraemon/middleware/risk-management.js
doraemon/middleware/risk-management.js
View file @
5220d1a
...
...
@@ -43,6 +43,11 @@ const _jumpUrl = (req, res, next, result) => {
module
.
exports
=
()
=>
{
return
(
req
,
res
,
next
)
=>
{
// default close
if
(
!
_
.
get
(
req
.
app
.
locals
.
wap
,
'close.risk'
,
false
))
{
return
next
();
}
let
ip
=
_
.
get
(
req
.
yoho
,
'clientIp'
,
''
);
let
path
=
req
.
path
||
''
;
let
risks
=
_
.
get
(
req
.
app
.
locals
.
wap
,
'json.risk'
,
[]);
...
...
Please
register
or
login
to post a comment