...
|
...
|
@@ -24,7 +24,7 @@ class OrderData |
|
|
* and open the template in the editor.
|
|
|
*/
|
|
|
|
|
|
public function getOrderData($type, $page, $limit, $gender, $yh_channel, $uid) {
|
|
|
static function getOrderData($type, $page, $limit, $gender, $yh_channel, $uid) {
|
|
|
//构建必传参数
|
|
|
$param = Yohobuy::param();
|
|
|
$param['gender'] = $gender;
|
...
|
...
|
@@ -36,7 +36,7 @@ class OrderData |
|
|
$param['yh_channel'] = $yh_channel;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
//调用接口获得数据
|
|
|
return Yohobuy::get(Yohobuy::API_URL2, $param);
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
|
|
|
/*
|
...
|
...
|
@@ -45,7 +45,7 @@ class OrderData |
|
|
* and open the template in the editor.
|
|
|
*/
|
|
|
|
|
|
public function cancelOrderData($order_code, $uid, $gender, $yh_channel, $method) {
|
|
|
static function cancelOrderData($order_code, $uid, $gender, $yh_channel, $method) {
|
|
|
$param = Yohobuy::param();
|
|
|
$param['order_code'] = $order_code;
|
|
|
$param['uid'] = $uid;
|
...
|
...
|
@@ -62,7 +62,7 @@ class OrderData |
|
|
* and open the template in the editor.
|
|
|
*/
|
|
|
|
|
|
public function deleteOrderData($order_code, $uid, $gender, $yh_channel, $method) {
|
|
|
static function deleteOrderData($order_code, $uid, $gender, $yh_channel, $method) {
|
|
|
$param = Yohobuy::param();
|
|
|
$param['order_code'] = $order_code;
|
|
|
$param['uid'] = $uid;
|
...
|
...
|
@@ -74,4 +74,20 @@ class OrderData |
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
* 支付订单
|
|
|
* To change this template file, choose Tools | Templates
|
|
|
* and open the template in the editor.
|
|
|
*/
|
|
|
|
|
|
static function getPaymentData($contentCode, $gender, $yh_channel) {
|
|
|
$param = Yohobuy::param();
|
|
|
$param['content_code'] = $contentCode;
|
|
|
$param['gender'] = $gender;
|
|
|
$param['yh_channel'] = $yh_channel;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
//print_r($param);
|
|
|
return Yohobuy::get(Yohobuy::SERVICE_URL . '/operations/api/v5/resource/get', $param);
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|