...
|
...
|
@@ -22,12 +22,11 @@ class RecomData |
|
|
*
|
|
|
* @param string $gender "1,3"表示男, "2,3"表示女
|
|
|
* @param string $channel 1表示男, 2表示女
|
|
|
* @param boolean $returnJson 是否返回json
|
|
|
* @param int $page 分页第几页, 默认第1页
|
|
|
* @param int $limit 查询返回的最大限制数, 默认为50
|
|
|
* @return array
|
|
|
*/
|
|
|
public static function mayLike($gender, $channel, $returnJson = true, $page = 1, $limit = 50)
|
|
|
public static function mayLike($gender, $channel, $page = 1, $limit = 50)
|
|
|
{
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'app.search.last7day';
|
...
|
...
|
@@ -37,7 +36,7 @@ class RecomData |
|
|
$param['yh_channel'] = $channel;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param, $returnJson);
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param, true);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|