修复男首进入侧边导航栏,点击sale专区,没有进入全部的sale页面的bug
Code Review By Rock Zhang
Showing
2 changed files
with
8 additions
and
5 deletions
@@ -36,7 +36,8 @@ class NewsaleModel | @@ -36,7 +36,8 @@ class NewsaleModel | ||
36 | 36 | ||
37 | /** | 37 | /** |
38 | * 获取新品到着的焦点图资源数据 | 38 | * 获取新品到着的焦点图资源数据 |
39 | - * | 39 | + * |
40 | + * @param int $channel | ||
40 | * @return array | 41 | * @return array |
41 | */ | 42 | */ |
42 | public static function getNewFocus($channel) | 43 | public static function getNewFocus($channel) |
@@ -64,7 +65,8 @@ class NewsaleModel | @@ -64,7 +65,8 @@ class NewsaleModel | ||
64 | 65 | ||
65 | /** | 66 | /** |
66 | * 获取折扣专区的焦点图资源数据 | 67 | * 获取折扣专区的焦点图资源数据 |
67 | - * | 68 | + * |
69 | + * @param int $channel | ||
68 | * @return array | 70 | * @return array |
69 | */ | 71 | */ |
70 | public static function getSaleFocus($channel) | 72 | public static function getSaleFocus($channel) |
@@ -164,8 +166,8 @@ class NewsaleModel | @@ -164,8 +166,8 @@ class NewsaleModel | ||
164 | 166 | ||
165 | /** | 167 | /** |
166 | * 顶部焦点图缓存控制 | 168 | * 顶部焦点图缓存控制 |
167 | - * @param const $cacheKey 缓存常量值 | ||
168 | - * @param const $codeKey 顶部焦点图位置码 | 169 | + * @param string $cacheKey 缓存常量值 |
170 | + * @param string $codeKey 顶部焦点图位置码 | ||
169 | * @return array 焦点图数据 | 171 | * @return array 焦点图数据 |
170 | */ | 172 | */ |
171 | private static function cacheControl($cacheKey, $codeKey) | 173 | private static function cacheControl($cacheKey, $codeKey) |
@@ -51,6 +51,7 @@ class NewsaleController extends AbstractAction | @@ -51,6 +51,7 @@ class NewsaleController extends AbstractAction | ||
51 | $this->setNavHeader('Sale'); | 51 | $this->setNavHeader('Sale'); |
52 | 52 | ||
53 | $channel = Helpers::getChannelByCookie(); | 53 | $channel = Helpers::getChannelByCookie(); |
54 | + $gender = $this->get('gender', '1,2,3'); | ||
54 | // 设置一些默认参数 | 55 | // 设置一些默认参数 |
55 | $data = array( | 56 | $data = array( |
56 | 'discountPage' => true, | 57 | 'discountPage' => true, |
@@ -59,7 +60,7 @@ class NewsaleController extends AbstractAction | @@ -59,7 +60,7 @@ class NewsaleController extends AbstractAction | ||
59 | 'pageFooter' => true, | 60 | 'pageFooter' => true, |
60 | 'brand' => '0', | 61 | 'brand' => '0', |
61 | 'sort' => '0', | 62 | 'sort' => '0', |
62 | - 'gender' => Helpers::getGenderByCookie(), | 63 | + 'gender' => $gender, |
63 | 'price' => '0', | 64 | 'price' => '0', |
64 | 'size' => '0', | 65 | 'size' => '0', |
65 | 'discount' => '0.1,0.9', | 66 | 'discount' => '0.1,0.9', |
-
Please register or login to post a comment