This commit is contained in:
unknown 2023-09-01 19:06:02 +08:00
parent 73abacefad
commit 73eceab30f

View File

@ -110,8 +110,8 @@ class VehicleLogic extends BaseLogic
}
if($data['status'] == 2){
//获取租赁信息
$rentInfo = VehicleRent::where('car_id',$data['id'])->find();
$contract = Contract::where('id',$rentInfo['contract_id'])->find();
$rentInfo = VehicleRent::where('car_id',$data['id'])->findOrEmpty()->toArray();
$contract = Contract::where('id',$rentInfo['contract_id'])->findOrEmpty();
$rentInfo['contract_file'] = $contract['file'];
$data['rent_info'] = !empty($rentInfo) ? $rentInfo : [];
//获取物流信息