Authored by Rock Zhang

修改频道页侧边栏数据获取接口地址以及返回的数据格式

Code Review By Rock Zhang
... ... @@ -18,7 +18,7 @@ class SideData
{
const URI_LEFTNAV_ENTRANCE = 'operations/api/v5/entrance/getEntrance';
const URI_LEFTNAV_CATEGORY = 'operations/api/v5/category/getCategory';
const URI_LEFTNAV_CATEGORY = 'operations/api/v6/category/getCategory';
/**
* 左侧边栏的分类和图标数据
... ... @@ -40,6 +40,7 @@ class SideData
$param = Yohobuy::param();
$param['client_type'] = 'h5'; // 调用H5手机网站的
$param['private_key'] = 'fd4ad5fcfa0de589ef238c0e7331b585'; // 调用Android的private_key不然会有参数验证错误的bug
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(Yohobuy::SERVICE_URL . self::URI_LEFTNAV_CATEGORY, $param);
... ...
... ... @@ -64,7 +64,8 @@ class SideModel
$subs[] = self::formatSideItem($oneSub);
}
$group[$groupKey]['subNav'] = $subs;
$group[$groupKey]['styleClass'] = 'guang';
$group[$groupKey]['subNav']['list'] = $subs;
}
$groupKey++;
... ... @@ -87,6 +88,7 @@ class SideModel
// 追加逛的子分类数据
$result[] = self::genLeftNavGuang($guangChoosed);
print_r($result);
return $result;
}
... ... @@ -109,7 +111,9 @@ class SideModel
$color = '#4f4138';
}
return array(
return
array(
array(
'textCn' => '逛',
'textEn' => 'TRENDFINDER',
'styleClass' => 'guang',
... ... @@ -145,6 +149,7 @@ class SideModel
),
)
)
)
);
}
... ...