...
|
...
|
@@ -45,14 +45,14 @@ class OrderData |
|
|
* and open the template in the editor.
|
|
|
*/
|
|
|
|
|
|
static function cancelOrderData($order_code, $uid, $gender, $yh_channel, $method) {
|
|
|
static function cancelOrderData($order_code, $uid, $gender, $yh_channel) {
|
|
|
//构建必传参数
|
|
|
$param = Yohobuy::param();
|
|
|
$param['order_code'] = $order_code;
|
|
|
$param['uid'] = $uid;
|
|
|
$param['gender'] = $gender;
|
|
|
$param['yh_channel'] = $yh_channel;
|
|
|
$param['method'] = $method;
|
|
|
$param['method'] = 'app.SpaceOrders.close';;
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
//调用接口获得数据
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
...
|
...
|
@@ -64,14 +64,14 @@ class OrderData |
|
|
* and open the template in the editor.
|
|
|
*/
|
|
|
|
|
|
static function deleteOrderData($order_code, $uid, $gender, $yh_channel, $method) {
|
|
|
static function deleteOrderData($order_code, $uid, $gender, $yh_channel) {
|
|
|
//构建必传参数
|
|
|
$param = Yohobuy::param();
|
|
|
$param['order_code'] = $order_code;
|
|
|
$param['uid'] = $uid;
|
|
|
$param['gender'] = $gender;
|
|
|
$param['yh_channel'] = $yh_channel;
|
|
|
$param['method'] = $method;
|
|
|
$param['method'] = 'app.SpaceOrders.delOrderByCode';
|
|
|
$param['client_secret'] = Sign::getSign($param);
|
|
|
//调用接口删除订单
|
|
|
return Yohobuy::get(Yohobuy::API_URL, $param);
|
...
|
...
|
|