This commit is contained in:
unknown 2023-10-17 19:00:04 +08:00
parent 87b5fbacd9
commit 1b5e2e9e7b

View File

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