code review by fei.hong: fixes bug to www redirect url
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -75,10 +75,10 @@ class Mobile | @@ -75,10 +75,10 @@ class Mobile | ||
75 | if ($uri === '/woman') { | 75 | if ($uri === '/woman') { |
76 | $uri = '/girls'; | 76 | $uri = '/girls'; |
77 | } | 77 | } |
78 | + // 首页特殊跳转 | ||
78 | if ($host === 'www.yohobuy.com') { | 79 | if ($host === 'www.yohobuy.com') { |
79 | return 'm.yohobuy.com' . $uri; | 80 | return 'm.yohobuy.com' . $uri; |
80 | } | 81 | } |
81 | - | ||
82 | $url = strtr($host, array('.yohobuy.com' => '.m.yohobuy.com')) . $uri; | 82 | $url = strtr($host, array('.yohobuy.com' => '.m.yohobuy.com')) . $uri; |
83 | 83 | ||
84 | return $url; | 84 | return $url; |
-
Please register or login to post a comment