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

Reviewed-on: 
This commit is contained in:
weiz 2023-10-17 19:00:36 +08:00
commit 5e6efdcf1d

@ -111,7 +111,7 @@ class VehicleController extends BaseApiController
if(empty($car)){ if(empty($car)){
return $this->fail('车辆数据有误'); return $this->fail('车辆数据有误');
} }
$json = json_encode($car->toArray()); $json = json_encode([$car->toArray()]);
//更改车辆状态 //更改车辆状态
VehicleRent::where('car_id',$params['car_id'])->update(['status'=>1]); VehicleRent::where('car_id',$params['car_id'])->update(['status'=>1]);
//更改状态 //更改状态