...
|
...
|
@@ -16,6 +16,7 @@ use Api\Sign; |
|
|
*/
|
|
|
class BrandData
|
|
|
{
|
|
|
|
|
|
const URI_BRAND_TOPPOS = 'operations/api/v5/resource/get';
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -182,14 +183,20 @@ class BrandData |
|
|
* @param integer $channel 表示频道号,1位男生,2为女生
|
|
|
* @return array 品类商品数据
|
|
|
*/
|
|
|
public static function filterBrandData($condition, $order = 's_t_desc', $limit = 60, $page = 1)
|
|
|
public static function filterBrandData($condition)
|
|
|
{
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'app.search.brand';
|
|
|
$param['page'] = $page;
|
|
|
$param['limit'] = $limit;
|
|
|
$param['order'] = $order;
|
|
|
$param += $condition;
|
|
|
if (!isset($param['order'])) {
|
|
|
$param['order'] = 's_t_desc';
|
|
|
}
|
|
|
if (!isset($param['limit'])) {
|
|
|
$param['limit'] = 60;
|
|
|
}
|
|
|
if (!isset($param['page'])) {
|
|
|
$param['page'] = 1;
|
|
|
}
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
...
|
...
|
|