...
|
...
|
@@ -149,6 +149,28 @@ class UserData |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 浏览记录数据
|
|
|
*
|
|
|
* @param int $uid 用户ID
|
|
|
* @param int $udid 客户端唯一标识
|
|
|
* @param int $page 第几页,默认为1
|
|
|
* @param int $limit 限制多少条,默认100
|
|
|
* @return array 接口返回的数据
|
|
|
*/
|
|
|
public static function browseRecord($uid, $udid, $page = 1, $limit = 100)
|
|
|
{
|
|
|
$param = Yohobuy::param();
|
|
|
$param['method'] = 'app.browse.product';
|
|
|
$param['uid'] = $uid;
|
|
|
$param['udid'] = $udid;
|
|
|
$param['page'] = $page;
|
|
|
$param['limit'] = $limit;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* YOHO币数据
|
|
|
*
|
|
|
* @param int $uid 用户ID
|
...
|
...
|
|