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
htoooth
8 years ago
Commit
ee7d90f7f4fa2252806e7e960b10d284a7b700af
1 parent
4d83b4d1
fix refer
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 @
ee7d90f
...
...
@@ -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