...
|
...
|
@@ -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));
|
|
|
}; |
...
|
...
|
|