Add customer email to jo details in rider api #424
This commit is contained in:
parent
f519ec01dc
commit
2b13adffa0
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue