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
郭成尧
8 years ago
Commit
52e7df31c9113f8122a95e6d4142c62314690447
1 parent
1b9ab824
home-header-color-sale-domain
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
doraemon/middleware/sub-domain.js
doraemon/middleware/sub-domain.js
View file @
52e7df3
...
...
@@ -16,6 +16,12 @@ module.exports = () => {
req
.
url
=
`
/
activity$
{
req
.
url
}
`
;
}
if
(
/^
\/
sale/
.
test
(
req
.
url
))
{
// sale 兼容php的url
res
.
redirect
(
301
,
helpers
.
urlFormat
(
'/product/sale'
,
req
.
query
,
'default'
));
return
;
}
if
(
req
.
subdomains
.
length
)
{
switch
(
req
.
subdomains
[
0
])
{
case
'guang'
:
// 逛
...
...
Please
register
or
login
to post a comment