Showing
1 changed file
with
1 additions
and
1 deletions
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | module.exports = () => { | 8 | module.exports = () => { |
9 | return (req, res, next) => { | 9 | return (req, res, next) => { |
10 | if (req.subdomains.length) { | 10 | if (req.subdomains.length) { |
11 | - switch (req.subdomains) { | 11 | + switch (req.subdomains[0]) { |
12 | case 'www': // 主站 | 12 | case 'www': // 主站 |
13 | case 'new': // 原新版 | 13 | case 'new': // 原新版 |
14 | case 'guang': // 逛 | 14 | case 'guang': // 逛 |
-
Please register or login to post a comment