|
...
|
...
|
@@ -96,7 +96,7 @@ class Api |
|
|
|
//查询未成交订单
|
|
|
|
public function getOrderPending($param)
|
|
|
|
{
|
|
|
|
$path = '/api/v5/trade/order-pending';
|
|
|
|
$path = '/api/v5/trade/orders-pending';
|
|
|
|
$method = 'GET';
|
|
|
|
return $this->request($path, $method, $param, $this->apiInfo);
|
|
|
|
}
|
|
...
|
...
|
@@ -184,6 +184,10 @@ class Api |
|
|
|
} else {
|
|
|
|
$result = Curl::httpGet($url, $param, $header);
|
|
|
|
}
|
|
|
|
return json_decode($result, true);
|
|
|
|
$data = json_decode($result, true);
|
|
|
|
if (json_last_error() !== JSON_ERROR_NONE) {
|
|
|
|
var_dump("json解析报错", $url, $param, $header, $this->apiInfo, $result);
|
|
|
|
}
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|