Authored by 周少峰

channel class

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