Merge pull request 'fixed' (#98) from zhangwei into dev

Reviewed-on: #98
This commit is contained in:
weiz 2023-10-17 19:38:35 +08:00
commit 45624625f4

View File

@ -273,6 +273,7 @@ class VehicleContractController extends BaseAdminController
$rent_info = VehicleRent::where('car_id',$v['id'])->findOrEmpty();
if(!$rent_info->isEmpty()){
$cars[$k]['type'] = $rent_info['type'];
$cars[$k]['rent_time'] = $rent_info['rent_time'];
}
}
$data['cars_info'] = $cars;