Add customer email to jo details in rider api #424

This commit is contained in:
Kendrick Chan 2020-06-21 17:04:41 +08:00
parent f519ec01dc
commit 2b13adffa0

View file

@ -707,6 +707,12 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
$after_images['others'] = $other_images;
}
// customer email
if ($jo->getMeta('customer_email') == null)
$cust_email = '';
else
$cust_email = $jo->getMeta('customer_email');
$data = [
'id' => $jo->getID(),
'service_type' => $jo->getServiceType(),
@ -758,6 +764,9 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
'arrive_photos' => $before_images,
'finish_photos' => $after_images,
// customer email
'customer_email' => $cust_email,
// END: cmb speicifc details
];