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
yyq
7 years ago
Commit
77fd132ae886bf956fb8e4d71ddbf9cb31c75c61
1 parent
9e555eb4
lint
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
apps/channel/controllers/index.js
apps/channel/controllers/index.js
View file @
77fd132
...
...
@@ -101,9 +101,9 @@ exports.hasNewUserFloor = (req, res, next) => {
// 频道页301重定向
exports
.
redirect
=
(
goUrl
)
=>
{
return
function
(
req
,
res
,
next
)
{
if
(
req
.
path
===
goUrl
)
{
return
next
();
}
if
(
req
.
path
===
goUrl
)
{
return
next
();
}
res
.
redirect
(
301
,
goUrl
);
};
...
...
Please
register
or
login
to post a comment