Showing
1 changed file
with
3 additions
and
2 deletions
@@ -7,6 +7,7 @@ use LibModels\Web\Product\BrandData; | @@ -7,6 +7,7 @@ use LibModels\Web\Product\BrandData; | ||
7 | use LibModels\Web\Product\SearchData; | 7 | use LibModels\Web\Product\SearchData; |
8 | use Api\Yohobuy; | 8 | use Api\Yohobuy; |
9 | use Api\Sign; | 9 | use Api\Sign; |
10 | +use Index\HomeModel; | ||
10 | /** | 11 | /** |
11 | * 搜索辅助类 | 12 | * 搜索辅助类 |
12 | */ | 13 | */ |
@@ -31,7 +32,7 @@ class HelperSearch | @@ -31,7 +32,7 @@ class HelperSearch | ||
31 | private static function setListNav() | 32 | private static function setListNav() |
32 | { | 33 | { |
33 | $options = self::$options; | 34 | $options = self::$options; |
34 | - $cookieChannel = isset($_COOKIE['_Channel']) ? $_COOKIE['_Channel'] : 'boys'; | 35 | + $channel = HomeModel::getSwitchChannel(); |
35 | if (isset($options['brandName']) && !empty($options['brandName'])) { | 36 | if (isset($options['brandName']) && !empty($options['brandName'])) { |
36 | $initNav = $options['brandNameEn'] . $options['brandNameCn']; | 37 | $initNav = $options['brandNameEn'] . $options['brandNameCn']; |
37 | }else{ | 38 | }else{ |
@@ -39,7 +40,7 @@ class HelperSearch | @@ -39,7 +40,7 @@ class HelperSearch | ||
39 | } | 40 | } |
40 | self::$listNav[0] = array( | 41 | self::$listNav[0] = array( |
41 | 'href' => '', | 42 | 'href' => '', |
42 | - 'name' => strtoupper($cookieChannel).'首页' | 43 | + 'name' => strtoupper($channel).'首页' |
43 | ); | 44 | ); |
44 | self::$listNav[1] = array( | 45 | self::$listNav[1] = array( |
45 | 'href' => '', | 46 | 'href' => '', |
-
Please register or login to post a comment