Add service_type to rider status #110

This commit is contained in:
Kendrick Chan 2018-05-02 21:39:45 +08:00
parent 4652a82fff
commit 05959d5734

View file

@ -1034,6 +1034,7 @@ class APIController extends Controller
$res->setData([
'status' => APIRiderStatus::OUTLET_ASSIGN,
'jo_id' => $jo->getID(),
'service_type' => $jo->getServiceType(),
'destination' => [
'long' => $dest->getLongitude(),
'lat' => $dest->getLatitude(),
@ -1044,6 +1045,7 @@ class APIController extends Controller
$res->setData([
'status' => APIRiderStatus::RIDER_ASSIGN,
'jo_id' => $jo->getID(),
'service_type' => $jo->getServiceType(),
'destination' => [
'long' => $dest->getLongitude(),
'lat' => $dest->getLatitude(),
@ -1060,6 +1062,7 @@ class APIController extends Controller
$res->setData([
'status' => APIRiderStatus::RIDER_PICK_UP,
'jo_id' => $jo->getID(),
'service_type' => $jo->getServiceType(),
'destination' => [
'long' => $dest->getLongitude(),
'lat' => $dest->getLatitude(),