Support new rider app has_motolite and flag_coolant format

This commit is contained in:
root 2018-09-10 00:08:38 +08:00
parent 92dd024805
commit 4464edc803

View file

@ -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);