ConsultData.php
630 Bytes
<?php
namespace LibModels\Web\Home;
use Api\Yohobuy;
use Api\Sign;
class ConsultData
{
/**
* 获取咨询列表
* @param int $uid
* @param int $page
* @param int $limit
* @return mixed
*/
public static function getConsult($uid = 0 , $page = 1, $limit = 10)
{
$param = Yohobuy::param();
$param['method'] = 'web.personCen.buyConsult';
$param['uid'] = $uid;
$param['page'] = $page;
$param['limit'] = $limit;
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(API_URL, $param);
}
}