...
|
...
|
@@ -113,7 +113,11 @@ class NewsaleData |
|
|
});
|
|
|
|
|
|
$param = Yohobuy::param();
|
|
|
if(!is_null($dayLimit)) {
|
|
|
$param['method'] = 'app.search.newProduct';
|
|
|
}else {
|
|
|
$param['method'] = 'app.search.sales';
|
|
|
}
|
|
|
$param['page'] = $page;
|
|
|
$param['limit'] = $limit;
|
|
|
$param['order'] = $order;
|
...
|
...
|
@@ -145,22 +149,7 @@ class NewsaleData |
|
|
|
|
|
// 构建url地址列表
|
|
|
$urlList = array();
|
|
|
$param['p_d'] = '0.1,0.3';
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$urlList['1-3折'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
|
|
|
|
|
|
$param['p_d'] = '0.4,0.6';
|
|
|
unset($param['client_secret']);
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$urlList['4-6折'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
|
|
|
|
|
|
$param['p_d'] = '0.7,0.9';
|
|
|
unset($param['client_secret']);
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$urlList['7-9折'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
|
|
|
|
|
|
$param['p_d'] = '0.1,0.9';
|
|
|
unset($param['client_secret']);
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
$urlList['ALL'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param);
|
|
|
|
...
|
...
|
|