diff --git a/app/adminapi/logic/vehicle/VehicleLogic.php b/app/adminapi/logic/vehicle/VehicleLogic.php index 94c970b3..f4f1fa6d 100644 --- a/app/adminapi/logic/vehicle/VehicleLogic.php +++ b/app/adminapi/logic/vehicle/VehicleLogic.php @@ -98,14 +98,15 @@ class VehicleLogic extends BaseLogic }else{ $position = []; foreach($gpsCarHistory['data'] as $k=> $v){ - $position[$k]['lat'] = $v['latc']; - $position[$k]['lon'] = $v['lonc']; + $position[$k]['latitude'] = $v['latc']; + $position[$k]['longitude'] = $v['lonc']; } $data['track_info'] = $position; } } //获取车辆使用情况 $data['travel_info'] = []; + if($data['status'] == 2){ //获取租赁信息 $rentInfo = VehicleRent::where('car_id',$data['id'])->find();