Skip to content

Commit e5e3cfe

Browse files
author
Denis Korolev
committed
fix
1 parent fc2e965 commit e5e3cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ContractorApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function getInfo(GetInfoRequest $request): GetInfoResponse
2626
$response = $this->send($req);
2727
$data = $response->getBody()->getContents();
2828

29-
if ($request->params->memberParam->extendedFields) {
29+
if ($response->getStatusCode() >= 200 && $response->getStatusCode() < 300 && $request->params->memberParam->extendedFields) {
3030
$array = json_decode($data, true);
3131

3232
$array['result']['boxes'] = $array['result']['Идентификатор'];

0 commit comments

Comments
 (0)