Merge pull request '车辆购买done2' (#87) from zhangwei into dev

Reviewed-on: #87
This commit is contained in:
weiz 2023-10-13 17:06:53 +08:00
commit b5d3c27503

View File

@ -632,6 +632,9 @@ class VehicleController extends BaseApiController
$xzRentCars = array_column($xzRentCars,'car_id'); $xzRentCars = array_column($xzRentCars,'car_id');
//5、获取平台未出租的车辆 //5、获取平台未出租的车辆
$result = curl_post(env('project.logistic_domain').'/api/Vehicle/getFreeCars',[],['ids'=>implode(',',array_merge($zjRentCars,$xzRentCars))]); $result = curl_post(env('project.logistic_domain').'/api/Vehicle/getFreeCars',[],['ids'=>implode(',',array_merge($zjRentCars,$xzRentCars))]);
foreach($result['data'] as $k => $v){
$result['data'][$k]['checked'] = [];
}
//6、返回 //6、返回
return $this->success('success',$result['data']); return $this->success('success',$result['data']);
} }