|
...
|
...
|
@@ -134,8 +134,12 @@ class Api |
|
|
|
$header = [];
|
|
|
|
$body = '';
|
|
|
|
$fullPath = $path;
|
|
|
|
if ($method == 'GET' && count($param) > 0) {
|
|
|
|
$fullPath = $path . '?' . http_build_query($param);
|
|
|
|
if ($method == 'GET') {
|
|
|
|
if (count($param) > 0) {
|
|
|
|
$fullPath = $path . '?' . http_build_query($param);
|
|
|
|
} else {
|
|
|
|
$fullPath = $path;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$header[] = 'Content-Type: application/json';
|
|
|
|
$body = json_encode($param);
|
...
|
...
|
|