Support new rider app has_motolite and flag_coolant format
This commit is contained in:
parent
92dd024805
commit
4464edc803
1 changed files with 2 additions and 2 deletions
|
|
@ -789,8 +789,8 @@ class RAPIController extends Controller
|
|||
|
||||
// has motolite battery
|
||||
$cv = $jo->getCustomerVehicle();
|
||||
$has_motolite = $req->request->get('has_motolite', 0);
|
||||
if ($has_motolite)
|
||||
$has_motolite = $req->request->get('has_motolite', 'false');
|
||||
if ($has_motolite == 'true')
|
||||
$cv->setHasMotoliteBattery(true);
|
||||
else
|
||||
$cv->setHasMotoliteBattery(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue