Showing
3 changed files
with
5 additions
and
4 deletions
@@ -318,11 +318,11 @@ class ShopProcess | @@ -318,11 +318,11 @@ class ShopProcess | ||
318 | 318 | ||
319 | $goodsCover = $val['goods_list'][0]['images_url']; | 319 | $goodsCover = $val['goods_list'][0]['images_url']; |
320 | 320 | ||
321 | - if (self::$channel === 1) { | 321 | + if (self::$channel == 1) { |
322 | $goodsCover = empty($defaultGoods['cover_1']) ? $defaultGoods['images_url'] : $defaultGoods['cover_1']; | 322 | $goodsCover = empty($defaultGoods['cover_1']) ? $defaultGoods['images_url'] : $defaultGoods['cover_1']; |
323 | } | 323 | } |
324 | 324 | ||
325 | - if (self::$channel === 2) { | 325 | + if (self::$channel == 2) { |
326 | $goodsCover = empty($defaultGoods['cover_2']) ? $defaultGoods['images_url'] : $defaultGoods['cover_2']; | 326 | $goodsCover = empty($defaultGoods['cover_2']) ? $defaultGoods['images_url'] : $defaultGoods['cover_2']; |
327 | } | 327 | } |
328 | 328 |
@@ -424,7 +424,8 @@ class ListModel | @@ -424,7 +424,8 @@ class ListModel | ||
424 | return array('goBrand' => $data['shopInfo']['data']); | 424 | return array('goBrand' => $data['shopInfo']['data']); |
425 | } | 425 | } |
426 | //店铺分类 | 426 | //店铺分类 |
427 | - $channel = Helpers::getChannelByCookie(); | 427 | + $channel = empty($_GET['yh_channel']) ? Helpers::getChannelByCookie() : $_GET['yh_channel']; |
428 | + | ||
428 | $data['shopCategory'] = ListData::getShopCategory($shopId, $channel); | 429 | $data['shopCategory'] = ListData::getShopCategory($shopId, $channel); |
429 | //组织楼层数据 | 430 | //组织楼层数据 |
430 | $result = ShopProcess::formShopData($data, $shopId, $appVersion, $channel); // tar add 160826 add $channel | 431 | $result = ShopProcess::formShopData($data, $shopId, $appVersion, $channel); // tar add 160826 add $channel |
@@ -488,7 +488,7 @@ class IndexController extends AbstractAction | @@ -488,7 +488,7 @@ class IndexController extends AbstractAction | ||
488 | /* tar add 160826 */ | 488 | /* tar add 160826 */ |
489 | $data['shopIdForFilter'] = $shopId; | 489 | $data['shopIdForFilter'] = $shopId; |
490 | $data['gender'] = $this->get('gender'); | 490 | $data['gender'] = $this->get('gender'); |
491 | - $data['channel'] = $this->get('channel') ? $this->get('channel') : Helpers::getChannelByCookie(); | 491 | + $data['channel'] = $this->get('yh_channel') ? $this->get('yh_channel') : Helpers::getChannelByCookie(); |
492 | 492 | ||
493 | $this->_view->display('shop', array( | 493 | $this->_view->display('shop', array( |
494 | 'shopIndex' => $data, | 494 | 'shopIndex' => $data, |
-
Please register or login to post a comment