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
yyq
7 years ago
Commit
c7323d6318086aafe255698ec431a5a2564b5fa0
2 parents
a9c95e42
2d7a8eb2
Merge branch 'hotfix/mobileRefer' into gray
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
doraemon/middleware/mobile-refer.js
doraemon/middleware/mobile-refer.js
View file @
c7323d6
...
...
@@ -52,7 +52,7 @@ module.exports = () => {
}
else
if
(
url
===
'/product/index/brand'
)
{
data
.
mobileRefer
=
`
//${req.query.domain}.${domain}`;
}
else
if
(
url
===
'/product/search/index'
)
{
data
.
mobileRefer
=
`
//search.${domain}
${req.url
}`;
data
.
mobileRefer
=
`
//search.${domain}
?${queryString.stringify(req.query)
}`;
}
else
if
(
url
===
'/guang/'
)
{
req
.
query
.
gender
=
genderMap
[
req
.
query
.
channel
];
_
.
unset
(
req
.
query
,
'channel'
);
...
...
Please
register
or
login
to post a comment