|
...
|
...
|
@@ -112,8 +112,11 @@ class Client implements ClientInterface |
|
|
|
'timestamp' => date('Y-m-d H:i:s'),
|
|
|
|
] + $pathQueryArray;
|
|
|
|
$data['sign'] = SignatureUtil::generate($data, Arr::get($this->config, 'app_secret'));
|
|
|
|
$response = $this->guzzleClient->request($this->request->getMethod(), $this->request->getPath(), [
|
|
|
|
$key => $data,
|
|
|
|
ksort($data);
|
|
|
|
$response = $this->guzzleClient->request($this->request->getMethod(), $this->request->getPath(), [
|
|
|
|
$key => array_filter($data, function ($v) {
|
|
|
|
return !(is_null($v) || $v === '');
|
|
|
|
}),
|
|
|
|
RequestOptions::HEADERS => [
|
|
|
|
'Content-Type' => 'application/json;charset=UTF-8',
|
|
|
|
]
|
...
|
...
|
|