...
|
...
|
@@ -26,17 +26,25 @@ class OrderData |
|
|
|
|
|
static function getOrderData($type, $page, $limit, $gender, $yh_channel, $uid) {
|
|
|
//构建必传参数
|
|
|
$param = Yohobuy::param();
|
|
|
$param['gender'] = $gender;
|
|
|
$param['limit'] = $limit;
|
|
|
$param['method'] = 'app.SpaceOrders.get';
|
|
|
$param['page'] = $page;
|
|
|
$param['type'] = $type;
|
|
|
$param['uid'] = $uid;
|
|
|
$param['yh_channel'] = $yh_channel;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
//调用接口获得数据
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
// $param = Yohobuy::param();
|
|
|
// $param['gender'] = $gender;
|
|
|
// $param['limit'] = $limit;
|
|
|
// $param['method'] = 'app.SpaceOrders.get';
|
|
|
// $param['page'] = $page;
|
|
|
// $param['type'] = $type;
|
|
|
// $param['uid'] = $uid;
|
|
|
// $param['yh_channel'] = $yh_channel;
|
|
|
// $param['client_secret'] = Sign::getSign($param);
|
|
|
// //调用接口获得数据
|
|
|
// return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
$param['limit'] = '10';
|
|
|
$param['page'] = 1;
|
|
|
$param['type'] = 1;
|
|
|
$param['uid'] = '12';
|
|
|
$param['iscancel'] = false;
|
|
|
$param['paymentStatus'] = 'Y';
|
|
|
print_r($param);
|
|
|
var_dump(Yohobuy::jsonPost(Yohobuy::YOHOBUY_ORDER.'orderInfo/getOrderList',$param));
|
|
|
}
|
|
|
|
|
|
/*
|
...
|
...
|
|