From dde21d9baf0c9bfd809563717f32718f8b57006d Mon Sep 17 00:00:00 2001 From: unknown <736250432@qq.com> Date: Thu, 7 Sep 2023 14:55:40 +0800 Subject: [PATCH] patch --- app/api/controller/ContractController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/ContractController.php b/app/api/controller/ContractController.php index 31c98789..41f99ac3 100644 --- a/app/api/controller/ContractController.php +++ b/app/api/controller/ContractController.php @@ -118,7 +118,7 @@ class ContractController extends BaseApiController try{ $update_result = $contract->where('id', $contract['id'])->save($params); if(isset($params['cars_info']) && !empty($params['cars_info'])){ - $cars = json_decode($contract['cars_info'], true); + $cars = json_decode($params['cars_info'], true); //更新本地车辆状态 $vehicle_result = Vehicle::where('id','in',array_column($cars,'id'))->update(['status'=>1]); }