Skip to content

Commit

Permalink
Merge pull request #20 from maxbrown1/hot_fix
Browse files Browse the repository at this point in the history
Update Client.php
  • Loading branch information
iamwildtuna authored Sep 7, 2021
2 parents 8546a9e + 682b731 commit b3769e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function getLabel($track)
*/
public function getOrderInfoByTrack($track_id)
{
return $this->callApi('POST', 'ParcelInfo', ['track' => $track_id]);
return $this->callApi('POST', 'ParcelInfo', ['parcels' => ['track' => $track_id]]);
}

/**
Expand All @@ -328,7 +328,7 @@ public function getOrderInfoByTrack($track_id)
*/
public function getOrderInfoByOrderId($order_id)
{
return $this->callApi('POST', 'ParcelInfo', ['order_id' => $order_id]);
return $this->callApi('POST', 'ParcelInfo', ['parcels' => ['order_id' => $order_id]]);
}

/**
Expand Down

0 comments on commit b3769e2

Please sign in to comment.