Authored by 周少峰

channel class

@@ -116,10 +116,11 @@ class ListData @@ -116,10 +116,11 @@ class ListData
116 * @author sefon 2016-4-27 21:39:51 116 * @author sefon 2016-4-27 21:39:51
117 * @return array 117 * @return array
118 */ 118 */
119 - public static function getShopCategory($shopId, $cache = 600) 119 + public static function getShopCategory($shopId, $channel, $cache = 600)
120 { 120 {
121 $param = Yohobuy::param(); 121 $param = Yohobuy::param();
122 $param['method'] = 'app.shop.getSortInfo'; 122 $param['method'] = 'app.shop.getSortInfo';
  123 + $param['yh_channel'] = $channel;
123 $param['shop_id'] = $shopId; 124 $param['shop_id'] = $shopId;
124 $param['client_secret'] = Sign::getSign($param); 125 $param['client_secret'] = Sign::getSign($param);
125 return Yohobuy::get(Yohobuy::API_URL, $param); 126 return Yohobuy::get(Yohobuy::API_URL, $param);
@@ -417,7 +417,8 @@ class ListModel @@ -417,7 +417,8 @@ class ListModel
417 //店铺信息 417 //店铺信息
418 $data['shopInfo'] = ListData::getShopInfo($shopId, $uid); 418 $data['shopInfo'] = ListData::getShopInfo($shopId, $uid);
419 //店铺分类 419 //店铺分类
420 - $data['shopCategory'] = ListData::getShopCategory($shopId); 420 + $channel = Helpers::getChannelByCookie();
  421 + $data['shopCategory'] = ListData::getShopCategory($shopId, $channel);
421 //店铺装修资源数据 422 //店铺装修资源数据
422 $data['decorator'] = ListData::getShopDecorator($shopId); 423 $data['decorator'] = ListData::getShopDecorator($shopId);
423 //组织楼层数据 424 //组织楼层数据