From fe363e1df6c2e24b900955fb849d6d85343741e1 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Sun, 21 Jun 2020 14:49:31 +0800 Subject: [PATCH] Add request object to format job order data method #424 --- src/Service/RiderAPIHandler/CMBRiderAPIHandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php index 833c274f..d14eac69 100644 --- a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php +++ b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php @@ -605,7 +605,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface return $data; } - protected function formatJobOrderData($jo) + protected function formatJobOrderData($req, $jo) { $coord = $jo->getCoordinates(); $cust = $jo->getCustomer(); @@ -776,7 +776,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface return $data; } - $jo_data = $this->formatJobOrderData($jo); + $jo_data = $this->formatJobOrderData($req, $jo); $data = [ 'job_order' => $jo_data @@ -1880,7 +1880,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface return $data; } - $jo_data = $this->formatJobOrderData($jo); + $jo_data = $this->formatJobOrderData($req, $jo); $data = [ 'job_order' => $jo_data