Skip to content

Commit 4a6a99e

Browse files
committed
Merge branch 'release/v3.0.9'
2 parents c9410cc + 7ad549a commit 4a6a99e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Message/CloseOrderRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public function setOutTradeNo($outTradeNo)
7272
*/
7373
public function sendData($data)
7474
{
75-
$request = $this->httpClient->post($this->endpoint)->setBody(Helper::array2xml($data));
76-
$response = $request->send()->getBody();
77-
$responseData = Helper::xml2array($response);
75+
$body = Helper::array2xml($data);
76+
$response = $this->httpClient->request('POST', $this->endpoint, [], $body)->getBody();
77+
$payload = Helper::xml2array($response);
7878

79-
return $this->response = new CloseOrderResponse($this, $responseData);
79+
return $this->response = new CloseOrderResponse($this, $payload);
8080
}
8181
}

0 commit comments

Comments
 (0)