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
Plain Diff
Browse Files
Authored by
周少峰
2016-12-27 16:16:29 +0800
Commit
0291c7da8c444ba3fc70f77ed0c239627ec57e9b
2 parents
4d83b4d1
ee7d90f7
Merge branch 'hotfix/error-refer' into 'master'
fix refer See merge request
!41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
apps/passport/models/refer-service.js
apps/passport/models/refer-service.js
View file @
0291c7d
...
...
@@ -12,5 +12,5 @@ const config = global.yoho.config;
const
allowedList
=
[
/yohobuy
\.
com$/i
,
/yoho
\.
cn$/i
];
module
.
exports
=
(
refer
)
=>
{
return
_
.
some
(
allowedList
,
allowed
=>
allowed
.
test
(
url
.
parse
(
refer
||
config
.
siteUrl
).
hostname
));
return
_
.
some
(
allowedList
,
allowed
=>
allowed
.
test
(
url
.
parse
(
refer
||
config
.
siteUrl
,
false
,
true
).
hostname
));
};
...
...
Please
register
or
login
to post a comment