...
|
...
|
@@ -21,7 +21,7 @@ use LibModels\Wap\Product\SearchData; |
|
|
class PlusstarData
|
|
|
{
|
|
|
|
|
|
const URI_BRANDLIST = 'guang/api/v1/plustar/getlist';
|
|
|
const URI_BRANDLIST = 'guang/api/v3/plustar/getlist';
|
|
|
const URI_BRANDINFO_PLUSSTAR = 'guang/service/v3/plustar/'; // 'guang/service/v3/plustar/'
|
|
|
const URI_BRANDINFO_FAVORITE = 'shops/service/v1/favorite/';
|
|
|
const URI_BRANDINFO_ARTICLE = 'guang/service/v1/article/';
|
...
|
...
|
@@ -45,19 +45,20 @@ class PlusstarData |
|
|
|
|
|
// 公共的参数
|
|
|
$param = Yohobuy::param();
|
|
|
$param['brand_type'] = '1';
|
|
|
$param['gender'] = $gender;
|
|
|
$param['yh_channel'] = $channel;
|
|
|
|
|
|
// 构建推荐的品牌参数及调用接口的URL
|
|
|
$build = $param;
|
|
|
$build['is_recommend'] = '1';
|
|
|
$build['brand_type'] = '4';
|
|
|
//$build['is_recommend'] = '1';
|
|
|
$build['client_secret'] = Sign::getSign($build);
|
|
|
$urlList['recom'] = Yohobuy::httpBuildQuery($url, $build);
|
|
|
|
|
|
// 构建所有的品牌参数及调用接口的URL
|
|
|
$build = $param;
|
|
|
$build['is_recommend'] = '0';
|
|
|
$build['brand_type'] = '1';
|
|
|
//$build['is_recommend'] = '0';
|
|
|
$build['client_secret'] = Sign::getSign($build);
|
|
|
$urlList['all'] = Yohobuy::httpBuildQuery($url, $build);
|
|
|
|
...
|
...
|
|